Adam Glenny's 89th-minute penalty helped Dungannon Swifts end a run of three league defeats in a row after they came from behind to beat Cliftonville 3-2 in an entertaining game at Stangmore Park.
Steven Scott gave the hosts a deserved lead in the 17th minute, but Joe Gormley levelled things up just before the break.
Brian Healy completed the turnaround for the Reds in the 63rd minute before Cahal McGinty equalised 10 minutes later and Glenny netted the winner with one minute of time remaining.
The win sees the Swifts close the gap to fourth-placed Linfield to six points while the Reds remain in seventh.
Topsy-turvy game at Stangmore
The home side started the brighter and threatened after seven minutes when Tiernan Kelly intercepted Jonny Addis' pass in midfield before driving forward and shooting from distance, but his low effort was well held by Lewis Ridd.
The hosts continued their fast start when Kobei Moore found space inside the penalty area but the Larne loanee's low drive fell the wrong side of the near post.
Less than three minutes later, the Swifts had the goal their play deserved as Corey Smith teed up Scott, who was afforded time and space from 20 yards and rifled past a helpless Ridd.
Midway through the first half, Moore again tested the visitors when he stood up Addis before cutting onto his left and aiming for the far corner, but his effort whistled past the upright.
Minutes before the break, the Reds were level against the run of play as Healy lofted forward to Gormley, who controlled expertly and found the bottom corner for his third goal in three outings.
Just after the hour mark, Cliftonville edged in front on the counter from a Swifts corner as Healy rounded Scott out wide before driving forward and firing low past Dunne for his fourth goal for the Reds.
Cliftonville almost extended their lead when Gormley latched onto Healy's through ball, but saw his first-time strike saved by Dunne.
The away side were made to pay for that miss when McGinty rose highest to head home at the back post after substitute Leo Alves had swung in a free-kick.
With two minutes remaining, referee Louise Thompson awarded a penalty for Shaun Leppard's clumsy foul on Alves, which Glenny converted from 12 yards to claim all three points for the hosts.