Younus Khan and Misbah-ul-Haq both hit centuries as Pakistan moved into a commanding position on day two of the first Test against Sri Lanka.
The veteran duo had combined for century stands the previous two times they batted together against Sri Lanka in five-day cricket and this time put on a 218-run partnership at Abu Dhabi.
After Younus was dismissed for 136 in the evening session, Misbah remained unbeaten on 105 at the close as Pakistan reached 327 for four, a lead of 123 runs.
Younus' 23rd Test hundred moved him level with Javed Miandad in Pakistan's all-time list of Test century-makers and just two behind Inzamam-ul-Haq's record.
Younus and Misbah had come together with Pakistan in some trouble at 83 for three after Sri Lanka were dismissed for 204 inside the opening day.
Mohammad Hafeez fell in the fourth over of the morning, Kaushal Silva taking a marvellous catch at short cover off Suranga Lakmal before debutant Ahmed Shehzad pulled Shaminda Eranga to Dimuth Karunaratne at backward square-leg.
But Misbah then joined Younus in the middle and they slowly strangled the Sri Lanka attack into submission.
Their scoring rate was at times laborious - Misbah needed 241 balls for his century - but they ushered their side into an important lead without any undue concern.
Misbah survived on 69, making only fine contact with a paddled shot but Mahela Jayawardene failed to hold a difficult chance at slip.
Younus accelerated to complete his ton just before tea, hitting a cover drive off Rangana Herath to bring the milestone up from his 147th ball.
He appeared firmly entrenched until he played down the wrong line and was bowled by Eranga.
Misbah went on to reach three figures as he survived to the end of the day alongside Asad Shafiq.