Robbie Brady got the Republic of Ireland out of jail as they secured their Nations League B status with a madcap 3-2 win over nine-man Armenia.
The 30-year-old, making his first start for his country since March last year, converted a stoppage-time penalty to snatch victory after Ireland very nearly threw the game away.
They looked to be cruising to just their second win of the Group 1 campaign as they entered the final 20 minutes leading 2-0 through goals from John Egan and Michael Obafemi.
However, goals from Artak Dashyan and Eduard Spertsyan silenced the locals before Brady's last-gasp intervention, the build-up to which saw both Hovhannes Hambardzumyan and Dashyan dismissed.