Rotherham United left it late to claim their first Championship win of the season amid chaotic scenes at AESSEAL New York Stadium against 10-man Cardiff City.
The game was in its final minute when the Millers' incessant second-half pressure was finally and deservedly rewarded.
Substitute Chris Maguire crossed from the right and Bluebirds centre-half Matthew Connolly could only direct the ball into his own net.
The home side had dominated possession and territory and created chance after chance after the interval but couldn't make their numerical advantage pay until time added on.
The crowd's frustration turned to joy and there was jubilation around three sides of the ground at the final whistle.
The visitors' goalkeeper, David Marshall, had been sent off in the 41st minute for kicking Millers striker Matt Derbyshire.
New boy Vadis Odjidja-Ofoe stepped up to score from the spot but, yet again, Rotherham conceded on the stroke of half-time.
READ MORE: We deserved to win by more says Evans
Fabio da Silva was tugged by Odjidja-Ofoe, Peter Whittingham converted the penalty and the Millers' lead had lasted all of five minutes.
It looked like being a painful afternoon as, try as they might, Rotherham couldn't break down the visitors' defence in the second half.
Joe Newell smacked a post in the first minute of time added on and it looked as if the Millers' last chance had gone.
But it all came good at the end as they got their second-tier campaign up and running at the eighth time of asking.
Rotherham United (4-4-2): Camp; Buxton, Rawson, Collins, Mattock; Odjidja-Ofoe, Smallwood, Andreu (Ledesma, 68), Newell; Clarke-Harris, Derbyshire (Maguire 82). Subs not used: Collin, G Ward, D Ward, Green, Halford.
Cardiff City (4-4-2): Marshall; Peltier, Morrison, Connolly, Da Silva; Noone (Jones 76), Dikgacoi, Whittingham, Ralls; Mason, Ameobi (Revell 86). Subs not used: Moore, Ecuele Manga, Pilkiington, Gunnarsson, Malone.
Referee: Keith Hill (Hertfordshire).
Attendance: 8,935 (818).