Experienced batsmen Younus Khan and Misbah-ul-Haq both scored centuries to enable Pakistan to build a lead of 123 on day two of the first Test against Sri Lanka in Abu Dhabi.
Younus made 136 and Misbah was unbeaten on 105 as Pakistan closed on 327 for four in reply to Sri Lanka's score of 204 all out.
Misbah reached his fifth Test century shortly before stumps after he and Younus had added 218 together for the fourth wicket.
Younus' 23rd Test century helped Pakistan recover from a position of 83 for three after they made a poor start to the day.
Resuming on 46 for one, Pakistan had added just 13 runs when Mohammad Hafeez (11) drove Suranga Lakmal to Kaushal Silva at cover.
Nine overs later, opener Ahmed Shehzad had reached 38 in 83 balls but went no further as he pulled Shaminda Eranga to Dimuth Karunaratne at leg gully, falling for a trap, much to the delight of the Sri Lankans.
That brought together the experienced pair of Younus and Misbah and they calmly batted their side into a strong position.
First, they got past 100, then into an overall lead and finally past 300 before Younus finally fell, bowled by one that nipped back from Eranga, who finished the day with two for 63.
Younus had faced 198 balls, hitting 19 fours and one six while Misbah continued to close on 105 in 250 balls with 13 fours.
Alongside him was Asad Shafiq, who had 12 in 50 balls with a couple of boundaries.
Junaid Khan (5-58), Bilawal Bhatti (3-65) and Saeed Ajmal (2-32) combined to ensure Pakistan dominated the opening day with the ball.
© Cricket World 2014