Peter Moores, the Nottinghamshire head coach, has signed a contract extension with the county after links with the vacant Pakistan role.

ESPNcricinfo understands that Moores, who coached England across two spells from 2007-09 and 2014-15, was among the PCB's preferred candidates for the Pakistan head coach job after Misbah-ul-Haq stepped down earlier this month, with the board keen to appoint a foreign replacement.

But Moores has committed his future to Nottinghamshire, signing a new three-year deal which will see him continue in his current role until at least the end of the 2024 season.

Moores' tenure at Nottinghamshire has included three trophies - the T20 Blast/Royal London Cup double in 2017 and a second Blast title last summer - and after a winless run in first-class cricket that stretched for 1,043 days, they have made significant improvements this summer and are one of four teams in contention for the County Championship title heading into the final round of games.

Mick Newell, Nottinghamshire's director of cricket, said in a club statement that Moores' record was "as good as anyone's in the county game" and highlighted his role in the club's ability to recruit players from elsewhere, such as Ben Duckett, Joe Clarke and Haseeb Hameed.

"We have been a force in the limited-overs game throughout Pete's time in charge and, during the past couple of seasons, we have seen a young side make significant progress in the County Championship as well," Newell said. "The three white-ball trophies the club has won, as well as the consistency shown in qualifying for the latter stages, constitutes a record that's as good as anyone's in the county game.

"Meanwhile, strides were made during the shortened 2020 season to make us more competitive in red-ball cricket and, this year, we have been back to where we want to be in terms of our performances in the first-class game.

"Pete's presence within our set-up has been a key factor in terms of our recruitment because people want to work with him, and he has also successfully committed to bringing through home-grown players with the likes of Lyndon James, Liam Patterson-White and Joey Evison all set to play a big part for the club long into the future."

Matt Roller is an assistant editor at ESPNcricinfo. @mroller98