Opener Taufeeq Umar scored an unbeaten 97 as Pakistan took command of the second Test against the West Indies on Sunday, ending the third day with a lead of 251 and seven second innings wickets remaining.
The tourists, trailing 1-0 in the two-match series, will now fancy their chances of levelling the series and West Indies need a radical turnaround in all three departments if they are to save the Test.
Left-hander Umar's patient innings, took 231 balls and involved some good fortune as he survived two dropped catches and a missed stumping.
On the final delivery of the day, he faced a loud shout from West Indies skipper Darren Sammy, who appealed in vain for a catch behind.
Sammy chose not to go to the video review and his yell may well have been more in frustration than a genuine inquiry given the mistakes he and his team mates made in the field.
After a fine rearguard effort from West Indies tail-enders Kemar Roach and Ravi Rampaul, who put on 60 runs for the ninth wicket as the Caribbean side scrapped their way to 223 all out, Sammy's team needed some early wickets to shift the momentum.
But Darren Bravo dropped an easy chance when Umar edged Roach to him at first slip and then another Umar edge off Roach flashed past skipper Sammy in the cordon.
Sammy then failed to hold on to a low edge from Mohammad Hafeez off Rampaul as Pakistan made it to 55 without loss at lunch.
The skipper made amends with the ball in the afternoon session as he dismissed Hafeez with a sharp in-swinger to get the belated breakthrough at 82 for one.
West Indies missed another chance to get rid of Umar when wicketkeeper Carlton Baugh missed a stumping off leg-spinner Devendra Bishoo.
Azhar Ali then edged Bishoo through the motionless slips as Pakistan's good fortune continued but Bishoo was to get his man after tea.
Ali attempted to cut a sharply turning leg-break from Bishoo and Sammy took a smart catch in the slips to remove the Pakistani batsman for 53.
Asad Shafiq then fell to a superb catch by Baugh off a rising and quick delivery from Roach as Pakistan, at 167 for three, lost some momentum.
But with Misbah-ul-Haq joining Umar to take the total to 202 by the close of play, the tourists will look back on a day in which they took advantage of some poor fielding from West Indies and put themselves in a position to win the Test.
Pakistan (1st innings): 272 (Azhar Ali 67; R. Rampaul 3-68)
West Indies (1st innings): (overnight 184 for eight)
L. Simmons c Taufeeq Umar b Tanvir Ahmed 0
K. Brathwaite c Taufeeq Umar b Wahab Riaz 15
D.M. Bravo c Asad Shafiq b Mohammad Hafeez 24
R. Sarwan st Mohammad Salman b Saeed Ajmal 20
M. Samuels c Taufeeq Umar b Saeed Ajmal 57
B. Nash c Misbah-ul-Haq b Mohammad Hafeez 6
C. Baugh lbw b Abdur Rehman 6
D. Sammy c Umar Akmal b Abdur Rehman 16
K. Roach lbw b Mohammad Hafeez 29
R. Rampaul not out 32
D. Bishoo c Taufeeq Umar b Saeed Ajmal 1
Extras: (b4, lb4, nb9) 17
Total: (all out in 83.5 overs) 223
Fall of wickets: 1-0 (Simmons), 2-22 (Brathwaite), 3-54 (Sarwan), 4-94 (Bravo), 5-100 (Nash), 6-107 (+Baugh), 7-144 (Sammy), 8-158 (Samuels), 9-218 (Roach).
Bowling: Tanvir Ahmed 7-1-22-1 (nb1); Wahab Riaz 11-1-59-1 (nb8); Abdur Rehman 29-10-55-2; Saeed Ajmal 28.5-10-56-3; Mohammad Hafeez 8-0-23-3.
Pakistan (2nd innings):
Mohammad Hafeez b Sammy 32
Taufeeq Umar not out 97
Azhar Ali c Sammby b Bishoo 53
Asad Shafiq c wkpr Baugh b Roach 4
Misbah-ul-Haq not out 13
Extras: (w1, nb2) 3
Total: (For 3 wkts in 75 overs) 202
Fall of wickets: 1-82 (Mohammad Hafeez), 2-158 (Azhar Ali), 3-167 (Asad Shafiq).
Bowling: Roach 15-6-42-1 (nb1); Rampaul 15-4-43-0 (nb1); Sammy 13-3-29-1 (w1); Bishoo 26-5-69-1; Nash 6-0-19-0.