Ireland's Kevin O'Brien reacts as he leaves the pitch at the end of play on day four of Ireland's inaugural test match against Pakistan at Malahide cricket club, in Dublin. Imam has already dealt with the pressure of expectation - his uncle, Inzamam-ul-Haq, is one of Pakistan's greatest batsmen, as well as the chief selector - and he played an innings of calm authority to record his maiden half-century, characterised by composure and sound shot selection.
Mohammad Abbas finished with a five-for and match figures of 9-110 as Ireland were dismissed for 339 having resumed on 319-7, the risky Kevin O'Brien failing to add to his overnight score of 118.
Imam shared a vital 126-run stand with Babar Azam (59) for the fourth wicket. O'Brien, who had been pivotal to Ireland's fightback on Monday, fell to his first ball of the day chasing a wider delivery and nicking to slip.
Imam ul-Haq of Pakistan. It can only be possible if they can restrict Pakistan on the final day under target which they present.
The visitors winning with five wickets to spare after their chased down a victory target of 160.
Pakistan struggled to complete a relatively modest run-chase against Sri Lanka past year and a furious bowling spell from Ireland's seamers sent a thrill of expectation around the ground.
In a match which saw the first day washed out, Pakistan dominated day two and three of the Test match by declaring their first innings on 310-9. Up stepped Kevin O'Brien, who became the first Irishman to score a century in test cricket while racking up an unbeaten 118.
Deadpool Star Ryan Reynolds Sings Classic Annie Tune as a Unicorn
It is the ideal antidote to the puffed-up self importance and overwrought sameness contained in the Marvel and DC universes. While he's migrated from the dead of winter to prime summer blockbuster season, Deadpool hasn't gone soft with success.
It took just four deliveries as Azhar Ali, who had been dancing down the wicket in a bid to put the Middlesex bowler out of his rhythm, nicked off to first slip where Paul Stirling took the catch.
The discipline in Ireland's second innings at odds with their first showing, when they were knocked over for just 130.
Ireland can be extremely proud and their display gave a basis to compete on equal terms and they certainly do not look like the new boys of Test cricket.
That took him to 48 and he became Ireland's first male test half-centurion with a single.
"They have a quality line-up but if we had got another couple and break that partnership, then it's completely game on", added Porterfield, reflecting on the missed opportunity to cause another major shock in world cricket.
Azam also pushed past 50 before getting himself run out as captain Sarfraz Ahmed, and then Shadab Khan joined opener Imam in the middle to see the game to the conclusion.
In the second innings, Ireland started better with William Porterfield and Ed Joyce putting together 69 runs for the opening wicket.