Abdullah Shafique was closing in on another half-century at stumps on day two of the deciding Test as Pakistan made a strong start in reply to Australia's 391 all out at Gaddafi Stadium.
Cameron Green (79) and Alex Carey (67) frustrated Pakistan in the heat on Tuesday before Naseem Shah (4-58) and Shaheen Shah Afridi (4-79) prevented the tourists from going beyond 400 in Lahore.
Pat Cummins dismissed Imam-ul-Haq cheaply, but an unbroken stand of 70 between Shafique (45 not out) and Azhar Ali (30no) took Pakistan on to 90-1 at the close - trailing by 301 runs.
Carey and Green took Australia from 232-5 at the start of play to 320-5 at lunch, bringing up their half-centuries as the Pakistan attack toiled.
Nauman Ali ended a sixth-wicket stand of 135 by trapping Carey bang in front and Naseem cleaned Green up with an excellent delivery.
Australia lost five wickets for 50 runs, with Afridi removing Mitchell Starc and making a mess of Mitchell Swepson's stumps after the impressive Naseem bowled Nathan Lyon.
Imam (11) was snared lbw by Cummins off balance in the 12th over of Pakistan's reply to end an opening stand of 20, while Shafique was fortunate to edge between Carey and Steve Smith in the slips.
Azhar clattered Lyon down the ground for six and Shafique ticked along nicely in great batting conditions.
Cummins wasted a review for an lbw shout against Azhar as Pakistan put a frustrating start to the day behind them.
Pakistan's young pace duo fire after Carey and Green stand
Green and Carey gave Australia just the start they were looking for, but Pakistan's young pacemen fired in the afternoon session.
Teenager Naseem and 21-year-old Afridi bowled with a combination of pace and reverse swing as they cleaned up the tail in quick time.
Naseem was not selected for the second Test but he will surely be a mainstay for years to come, while Afridi has already proven he is a class act time and again.
The composed Shafique has been a revelation for Pakistan at the top of the order and the opener laid solid foundations once again.
Having made a 134 and 44 in the opening match of the series in Rawalpindi before falling four short of a century in the first innings in Karachi, Shafique will be eyeing three figures again.