Pakistan kicked off their Asia Cup campaign with a nervy 21-run victory over Bangladesh at Mirpur.
Coming into the triangular series off the back of a 4-0 series whitewash to England, Pakistan looked to be heading towards another loss with Bangladesh well set on 224-5 in pursuit of a target of 263.
However, Umar Gul and Saeed Ajmal teamed up to devastating effect to claim the final five Tigers wickets between them, the hosts dismissed for 241 for captain Shakib Al-Hasan the last man out for 64.
While Gul (3-58) starred with the ball, it was Mohammad Hafeez's welcome return to form which ultimately paved the way for the win.
Hafeez struck 89 at the top of the order and shared a 135-run partnership with fellow opener Nasir Jamshed to set the platform for a solid first-innings total.
The right-hander struck seven boundaries in total, bringing up his half-century from 72 balls, while Jamshed needed just 59 balls to reach his landmark soon after.
It was a frustrating opening period for Bangladesh but their luck began to change when Jamshed was run out on 54 by a direct hit from Shakib.
Hafeez continued to look confident at the crease, but the hosts were also growing in stature and soon sparked a spell which saw six wickets fall for the addition of just 37 runs.
Younus Khan became the first of three victims for Shahadat Hossain, edging to Abdur Razzak at extra cover on 12, while Hafeez followed to the same bowler two overs later, Shafiul Islam taking the catch this time.
Shahadat struck again to dismiss Asad Shafiq for four, with Umar Akmal (22) and Shahid Afridi (0) then succumbing to Shakib within three deliveries of each other.
Misbah-ul-Haq's demise for eight at the hands of Razzak left Pakistan struggling on 198-7, but Umar Gul and Sarfraz Ahmed got the tourists moving again with an eighth-wicket stand of 53.
Gul's brave resistance was finally ended on 39 when he was deceived by Mashrafe Mortaza, but his innings helped rescue the situation for Pakistan.
Bangladesh openers Tamim Iqbal and Mohammed Nazimuddin ensured their side made a fighting start in their chase, but after a quick-fire 30 from 33 balls, the latter was the first man to fall to Aizaz Cheema.
Jahural Islam added 23 to the scoreboard before falling to Afridi, who then bowled Mushfiqur Rahim (three) two overs later to leave the home side on 100-3.
Tamim was making steady progress at the other end and reached his 50 in 75 balls, but his dismissal for 64 marked the first of Hafeez's two wickets, with Mohammad Mahmudullah trapped lbw immediately after.
Nasir Hossain survived the hat-trick ball and set about trying to rescue Bangladesh's innings with Shakib.
The pair put on a stand of 89, which saw Shakib notch his 23rd ODI half-century, but Nasir's dismissal by Gul just three runs short of his 50 signalled the beginning of the end for the hosts.
Razzak, Mortaza and Shafiul all fell in quick succession for singles apiece before Gul finished off their opponents' challenge by bowling Shakib for 64.