Yasir Shah and Hasan Ali claimed five wickets apiece as Pakistan took control of the first Test against New Zealand on day three.
Yasir worked his way through four New Zealand wickets in a row as he posted figures of 5-110, while Hasan finished the day 5-45 in an impressive outing.
Pakistan reached 37-0 by the close of play in the United Arab Emirates, needing 139 runs to wrap up victory.
New Zealand were 56-1 and 18 runs adrift of Pakistan at the beginning of the day before Yasir broke an 85-run partnership between Jeet Raval (46) and Kane Williamson (37) by taking out the skipper's off-stump with a fantastic delivery.
Hasan then saw off Ross Taylor (19) and Raval in the same over and, although Pakistan had to wait 51 overs for their next scalp, the wickets fell rapidly thereafter.
New Zealand lose 6/29, collapsing from 220/4 to 249 all out!— ICC (@ICC) November 18, 2018
Yasir Shah and Hasan Ali each finish with five-wicket hauls, and Pakistan need 176 to win.#PAKvNZ LIVE
Yasir's devastating run started with the dismissal of Henry Nicholls (55), who built a 112-run stand with BJ Watling (59) to stretch the Black Caps' lead to 146, before ending the involvement of Colin de Grandhomme (3), Watling and Neil Wagner (0) in the space of five overs.
Hasan – registering his first five-for in Test cricket – finished the job with the final two wickets as New Zealand tumbled from 220-4 to 249 all out, putting Pakistan in the box seat ahead of day four.
Imam-ul-Haq and Mohammad Hafeez will resume at the crease on Monday after making a brisk start to Pakistan's second innings.
0-1 (Tom Latham, 1.1)— PCB Official (@TheRealPCB) November 18, 2018
105-3 (Ross Taylor, 38.1)
108-4 (Jeet Raval, 38.5)
249-9 (Ish Sodhi, 100.2)
249-10 (Trent Boult, 100.4)
The first Five-Wicket Haul for @RealHa55an in Test Cricket#PAKvNZ pic.twitter.com/DCUlmBNZs5