Pakistan were 134 for two at stumps on day two of the second cricket test against New Zealand in Wellington.
The tourists were trailing their hosts by 222 runs at the Basin Reserve.
Pakistan bowled the Black Caps out for 356 then lost an early wicket, but recovered well before losing their second wicket on the last ball before the close of play.
Taufeeq Umar was snared by Daniel Vettori to end a good day for the New Zealand captain, who also reached his sixth Test century.
Vettori made 110 and was the last wicket to fall.
He then snared the second Pakistan wicket with the final ball of the day and says he would have liked his bowlers to have made more inroads, but overall he's happy.
The home side's wicketkeeper Reece Young's knock of 57 was the other notable score on Sunday, while Azhar Ali is the not out batsman for Pakistan and was on 62 heading into the third day.