League One Stockport County survived a scare to beat Isthmian League side Cray Wanderers 3-2 after extra time in the FA Cup first round.
Cray were nine minutes away from defying a 113-team gap in the football pyramid after Sammie McLeod and Alex Hernandez put them ahead in the first half.
Stockport goalkeeper Luca Ashby-Hammond was sent off after 31 minutes before Kyle Wootton and Mikael Mandron levelled late on for the visitors.
Lewis Fiorini's extra-time penalty then proved enough for County on an incredible afternoon at Flamingo Park.
After a slow start for both sides, the game sprung to life through McLeod's tidy finish on 20 minutes. Stockport were dispossessed, and Olajuwon Ogunwamide drove forward before picking out the perfect cross.
Ade Yusuff thought he should have been awarded a penalty after he went down under a challenge.
Moments later, County's misery was compounded. John Ufuah lobbed Ashby-Hammond, and although his effort was cleared off the line, the goalkeeper was sent off for colliding into the Cray player.
From the resulting free-kick, Hernandez doubled the lead with a sumptuous effort, sending the fans wild.
Suddenly, a famous upset was in their grasp.
Cray looked set to close the game out, but substitute Wootton headed in from close range after Josh Dacres-Cogley's cross on 81 minutes, changing the dynamic of the game in an instant.
Stockport's quality began to tell, and Mandron found the leveller in stoppage time to restore parity and force an extra 30 minutes.
Fiorini put Stockport ahead for the first time from the spot after 101 minutes after JJ Briggs committed a foul in the area. Ultimately, that put an end to a brave Cray fight.