Pakistan made heavy weather of a modest chase before eventually getting over the finish line in a four-wicket win in the first Test against Sri Lanka in Galle on Thursday.
Pakistan kept losing wickets at regular intervals but opening batsman Imam-ul-Haq scored an unbeaten half-century – his eighth in Test cricket – to see the tourists home before lunch on the fifth day.
Imam's 50 helped the visitors chase down a tricky target of 131. Pakistan started the final day on 48-3 and lost three more wickets, including skipper Babar Azam for 24 off Prabath Jayasuriya, before they achieved their target in the first session.
Imam started the day on 25 and remained calm with Azam and then left-handed partner Saud Shakeel, who made a brisk 30 after his unbeaten 208 in Pakistan's first innings.