Brisbane - Peter Handscomb posted a maiden century and the tail wagged as Australia pushed their first innings to 429 all out to frustrate Pakistan in the day-night first Test at the Gabba on Friday.
Handscomb made the most of his opportunity and followed up a half-century on debut against South Africa in Adelaide last month with a polished 105.
Tailenders Nathan Lyon and Jackson Bird hit out in a crowd-pleasing last-wicket stand of 49 to extend Australia's total well past 400.
Handscomb was out in the third over after tea on the second day when he chopped a Wahab delivery on to his stumps, one ball after Josh Hazlewood was caught at first slip in Mohammad Amir's previous over.
Bird smoked a lusty six in his unbeaten 19 and Lyon cracked 29 off 24 balls to stymie Pakistan's efforts to quickly mop up the Australia first innings.
It mitigated Pakistan's hard work in the first session when they claimed four dismissals but were left to rue yet more dropped catches.
Wahab Riaz and Mohammad Amir both finished with four wickets each.
The Australians, who resumed at 288 for three, lost skipper Steve Smith for 130, Nic Maddinson for one, Matthew Wade seven and Mitchell Starc 10.
Smith was finally out to a wild shot in the 100th over when he slashed at Wahab Riaz and gave wicketkeeper Sarfraz Ahmed a regulation catch.
It ended a 172-run stand with Handscomb and he departed with his side in command at 323 for four.
Smith had some luck along the way with his 16th Test century, offering three chances during his 222-ball knock.
The Australian captain was dropped on 53 by Ahmed off spinner Azhar Ali and on 97 he survived in bizarre circumstances when a faint outside edge off Mohammad Amir was taken by Ahmed, but there was no appeal.
According to the infra-red imaging system Hot Spot, the pink ball registered a faint contact on the bat and Smith later admitted he had nicked it.
On 129, he jumped down the wicket to luckless leg-spinner Yasir Shah and skied to long-off, where Amir made a hash of the catch.
Maddinson was dropped by Azhar at short leg before scoring but was out soon after, caught behind off Wahab.
The tentative Maddinson lasted just eight balls, coming on top of his 12-ball duck on debut against South Africa in Adelaide last month to put his Test place in peril.