Captain Misbah-ul-haq and Asad Sahfiq ground out an unbroken 128-run partnership to resurrect Pakistan's first innings and guide them to 235 for four at the close of play of the second day of the first Test against New Zealand on Saturday.
Misbah built a slow and watchful 50 off 129 balls, while the 24-year-old Shafiq was on 74, his highest Test score after he made 61 on debut against South Africa last November, to put Pakistan in a strong position heading into day three.
New Zealand, courtesy of a sustained period of pressure from Daniel Vettori and Tim Southee, had captured three wickets in the middle session to leave Pakistan struggling at 107 for four at a sun-drenched Seddon Park.
Misbah and Shafiq, however mindful another wicket would expose the lower order to a fired-up New Zealand bowling attack, wore down the tiring New Zealanders, patiently waiting until they got a bad ball to hit.
"Misbah and Asad both played brilliantly and because of that we are in the driving seat right now," said opener Taufeeq Umar, who scored a quick-fire 54.
"Our first target is above 275 and then let's see. If Misbah and Asad keep playing like this we are looking for about a 100-run lead," he added.
The hosts, who were bowled out for 275 early on Saturday, initially failed to capitalise on a perfect start when Mohammad Hafeez was caught low down by Tim McIntosh at second slip off Chris Martin in the first over of Pakistan's innings.
The bowlers, however, were subsequently too loose, surrendering too many boundaries as Pakistan romped to 67 for one by lunch with Taufeeq on a breezy 42 not out.
However, after the lunch break the New Zealand bowlers tightened up to snare Taufeeq, Azhar Ali (24) and the valuable wicket of Younus Khan for a quickfire 23 from 24 balls.
"Bear in mind there are plans there, the ball was tailing in a wee bit and we were trying to get them to work the straight ones and trying to get an lbw," pace bowler Brent Arnel said.
"Sometimes your plans can backfire in cricket and it looks like you have bowled a bad ball and they get away with it, but sometimes it can create a great reward for us," he added.
New Zealand first innings (overnight 260-7)
T. McIntosh c Younus b Tanvir 5
B. McCullum c Azhar b Gul 56
M. Guptill c Misbah b Rehman 50
R. Taylor c Akmal b Rehman 6
J. Ryder run out 22
K. Williamson c Akmal b Tanvir 50
R. Young lbw b Rehman 14
D. Vettori lbw b Tanvir 0
T. Southee c Younus b Gul 56
B. Arnel c Wahab b Tanvir 8
C. Martin not out 0
Extras: (lb-6, nb-1, w-1) 8
Total: (all out, 97.5 overs) 275
Fall of wickets: 1-9, 2-92, 3-99, 4-135, 5-158, 6-176, 7-177, 8-261, 9-274
Bowling: Gul 24-3-84-2, Tanvir 18.5-2-63-4, Wahab 17-4-47-0, Younis 6-1-20-0, Rehman 30-13-51-3, Hafeez 2-1-4-0
Pakistan first innings:
M. Hafeez c McIntosh b Martin 0
T. Umar c Williamson b Arnel 54
A. Ali c Young b Martin 24
Y. Khan c & b Arnel 23
Misbah-ul-haq not out 50
A. Sahfiq not out 74
Extras: (nb-3 w-1 lb-6) 10
Total: (for four wickets, 80 overs) 235
Fall of wickets: 1-0, 2-72, 3-104, 4-107
Bowling: Martin 16-3-67-2, Southee 19-7-37-0, Arnel 16-2-53-2, Vettori 22-10-29-0, Williamson 5-0-30-0, Guptill 2-0-13-0.