Debutant fast bowler Bilawal Bhatti dismissed experienced duo Kumar Sangakkara and Mahela Jayawardene in consecutive deliveries as Pakistan strengthened their hold on the first Test against Sri Lanka in Abu Dhabi on Thursday.
Left-arm paceman Junaid Khan also picked up opener Kaushal Silva for 81, caught behind, with the last delivery of the third day to reduce Sri Lanka to 186 for four in their second innings, a lead of seven runs.
Dimuth Karunaratne (24) put on 47 runs for the opening wicket with Silva before he was bowled by Junaid.
Silva and Sangakkara (55) then put on 99 for the second to get Sri Lanka close to wiping out the first innings deficit of 179.
He returned to have Jayawardene caught for a duck off the first ball of his next over to dent Sri Lanka's chances of a big second innings total.
Pace duo Shaminda Eranga (three for 80) and Suranga Lakmal (two for 99) had led Sri Lanka's fightback in the morning as Pakistan lost their last six wickets for 54 to be all out for 383.
Needing quick wickets in the first session to keep Pakistan's lead under check, Lakmal sent back Asad Shafiq (13) after the batsman had just added a run to his overnight score.
Shafiq flicked Lakmal to square leg where Silva completed a diving catch.
Wicketkeeper Adnan Akmal (six) also went quickly, edging Eranga to gully, before Bhatti (14) was adjudged caught behind after Sri Lanka captain Angelo Mathews asked a review of the umpire's not out decision.
Left-arm spinner Rangana Herath, who had looked largely ineffective till then, mopped up the last three wickets in four balls to end the innings.
Saeed Ajmal and Rahat Ali were out leg before and bowled respectively in consecutive deliveries while Pakistan captain Misbah-ul-Haq (135) was the last man to fall.
Misbah added 30 to his overnight score before holing out in the deep to Sangakkara while looking for quick runs.
Scorecard
Sri Lanka: 1st innings 204
Pakistan: 1st innings (overnight 327-4)
Khurram Manzoor run out 21
Ahmed Shehzad c Karunaratne b Eranga 38
Mohammad Hafeez c Silva b Lakmal 11
Younis Khan b Eranga 136
Misbah-ul-Haq c Sangakkara b Herath 135
Asad Shafiq c Silva b Lakmal 13
Adnan Akmal c Senanayake b Eranga 6
Bilawal Bhatti c Prasanna b Mathews 14
Saeed Ajmal lbw b Herath 0
Rahat Ali b Herath 0
Junaid Khan not 4
Extras: (lb2, nb2, w1) 5
Total: (all out in 129.1 overs) 383
Fall of wickets: 1-46, 2-59, 3-83, 4-301, 5-329, 6-342, 7-369, 8-378, 9-378
Bowling: Lakmal 33-9-99-2, Mathews 13-1-43-1, Eranga 30-6-80-3, Herath 35.1-9-93-3, Senanayake 18-2-66-0
Sri Lanka 2nd innings
D Karunaratne b Junaid 24
K Silva c Akmal b Junaid 81
K Sangakkara c Younis b Bhatti 55
M Jayawardene c Shafiq b Bhatti 0
D Chandimal not out 24
Extras: (lb2) 2
Total: (for four wkts in 61.3 overs) 186
Fall of wickets: 1-47, 2-146, 3-150, 4-186
Bowling: Junaid 13.3-0-46-2, Ali 17-6-33-0, Bhatti 14-1-65-2, Ajmal 13-3-30-0, Hafeez 4-1-10-0.
Image: Junaid Khan
Photograph: Dinuka Liyanawatte/Reuters
Younis, Misbah hundreds put Pakistan in control
Sri Lanka recall Jayawardene, Herath for Pakistan Tests
Hafeez ton guides Pakistan to 11-run win over SL
India colts beat SL to set up title date against Pakistan
Punch-drunk England's pride on line in Boxing Day Test