But Australia delaying the second new ball allowed Sohail and Shafiq to open up in the second hour, adding 55 more runs.
Sohail, playing only his 6th Test, scored 110 off 240 deliveries and was involved in a 150-run stand with Asad Shafiq (80) for the fifth wicket. But, the duo batted patiently soon reaching their individual half-centuries. Sohail brought up his maid Test century and was well assisted by Asad Shafiq's 80.
It was for the eighth time in Test cricket both the captains also kept wickets and the last time this happened was in September 2014 - Denesh Ramdin and Mushfiqur Rahim at Gros Islet. He started the over - the 144th of the innings - with a rank full toss that was swatted away to the deep midwicket fence by Shafiq, but followed it up with a spitting leg-spinner that would have made Shane Warne proud.
Part-time leg spinner Marnus Labuschagne finally broke through just before the tea break when he lured Shafiq to drive the ball away from his body and got the thick outside edge to Paine behind the wickets. Azam was slow off the blocks and unfortunately for him, Labuschagne fired a clean throw right over the stumps finding the batsman a few inches short.
Tropical Cyclone Fourteen aims towards Gulf of Mexico
Well east of the US , the storm is pushing north and is expected to turn back east to southeast, staying over water. CDT issued its first advisory on the storm, which is getting better organized over the northwestern Caribbean Sea.
Pakistan are still in control of the game, mostly because of the bowlers' efforts, with a tall 325-run lead on the board.
Pakistan then chose to pile on the agony by forcing the Australian bowlers to take the field for the third time in three days by not enforcing the follow on. The team from down under left behind a 280-run first inning lead for Pakistan to build on.
Asif is the 11th Pakistani bowler to take five or more wickets in an innings on Test debut.
Both Pakistan batsmen batted more fluently against the second new ball in the afternoon session as Australia's bowlers couldn't trouble them with either seam or spin. The surface has still not started acting up but with Yasir Shah and Mohammad Hafeez to tackle, the Australians will want to see these two to stay on for as long as possible.