Harry Brook scored a third century of the series as England finished the second day of the third Test against Pakistan with a 29-run advantage.
In-form batter Brook struck a brilliant 111 as the tourists recovered from 145-5 to post 354 all out in reply to 304 and Pakistan closed on 21 without loss on another absorbing day at the National Stadium in Karachi.
Having started the day on 7-1, England were in trouble after Nauman Ali (4-126) got rid of Ben Duckett before Joe Root edged his first ball to Agha Salman at slip.
Ollie Pope made an assured 51, but was on his way after being bowled by a beautiful delivery from Abrar Ahmed (4-150) and Ben Stokes was run out for 26 following a mix-up with Brook.
England needed Brook to deliver again after the calamitous loss of his skipper and he continued his purple patch with a stylish innings, putting on 117 for the sixth wicket with the impressive recalled Ben Foakes (64).
Brook showed a combination of great timing and power, scoring a third hundred in on his fourth Test, and Foakes showed his class with the bat to frustrate Pakistan.
Mohammad Wasim trapped Brook leg before to end his sublime knock, but Mark Wood (35) and Ollie Robinson (29) offered support for Foakes with enterprising knocks to enable England to take a lead.
Abrar cleaned up Robinson to end the innings, with Abdullah Shafique and Shan Masood negotiating nine overs late in the day to reduce the deficit without any damage being done.
Brook's dream start continues
It was only in January that the 23-year-old Brook played his first England game and a Test debut followed in September.
He looks very much at home on the international stage, hitting three sixes and a further eight boundaries in his latest outstanding innings.
Foakes shows his class
Wicketkeeper-batter Foakes missed the first Test due to illness and Pope kept the gloves for the second Test as England wrapped up the series with one match to spare.
Back in the side for the final Test, Foakes gave yet another demonstration of his class with the bat – as well as being a brilliant keeper.