Irish Premiership play-off: Ballinamallard United 3-3 Institute (5-4 win on agg)
A dramatic goal in the fifth minute of injury time ensured Ballinamallard United retained their Irish Premiership status for the 2016/2017 season.
Institute looked to be going through on away goals in Wednesday's play-off second leg as they led 3-2 deep into stoppage time at Ferney Park.
After a goal mouth scramble in the 95th minute, 'Mallards defender Steve Feeney had the last touch to draw the game.
It was heartbreak for Institute, who trailed 2-1 after the first leg.
In a see-saw game, Institute took the lead after 17 minutes when Jamie Dunne latched on to Ciaran Harkin's pass and drilled a low shot across Alvin Rouse into the far corner of the net to make it 2-2 on aggregate.
Rouse was fortunate to still be on the field having raced out of his box in the eighth minute and upended Shane McGinty. The 'keeper received a yellow card instead of a red as there were defenders back covering the goal.
Ballinamallard equalised after 22 minutes when Sean Friars rose highest to head Jason McCartney's free-kick past Marty Gallagher in the Institute goal.
'Stute got their noses in front again in the 28th minute when Gareth Brown connected with Stephen O'Donnell's cross from the right and buried his first time finish from close range past Rouse.
Ballinamallard went close to levelling again after 38 minutes but Ryan Campbell's shot was narrowly wide.
Two goals inside 60 seconds lit up the second half.
Cathal Beacom equalised for Ballinamallard from the penalty spot in the 59th minute, after O'Donnell pulled Johnny Laverty to the ground to make it 2-2 on the night.
Within a minute, Institute took control again when McGinty cut in and unleashed an unstoppable shot into the top corner from 25 yards out.
That made it 4-4 on aggregate and Institute looked set to go through on away goals until the home side pounced for a last gasp goal.