Pakistan have set a healthy total of 451 runs after getting all out before tea by Sri Lanka on day two of the opening Test in Galle.
Pakistan managed to improve on their score courtesy of an unbeaten 171 from Younis Khan by reaching lunch on 347-5.
After a frustrating few hours for Sri Lanka's bowlers, wickets began to tumble in the afternoon session as Dilruwan Perera took five, the first of which was Khan, who returned to the pavilion having hit 177 off 331 balls.
Sarfraz Ahmed (55), Saeed Ajmal (12) and Abdur Rehman (50) all shortly followed, while Junaid Khan was taken out for a duck.
Sri Lanka will begin their reply at the start of the evening session.