Andy Williams struck an 83rd-minute winner to earn League One side Swindon Town victory over League Two opponents Torquay United in the Capital One Cup.
Substitute Miles Storey broke through and teed up an easy chance for Williams, who netted from close range.
Swindon had wasted the chance to go in front when Alex Pritchard's penalty was saved by Martin Rice.
Williams also twice hit the woodwork while Torquay's best effort saw Callum Ball's shot saved by Wes Foderingham.
VIEW FROM THE DRESSING ROOM
Swindon Town goalscorer Andy Williams told BBC Wiltshire:
"I was a bit worried it was already going in but I let Pritchard have the penalty so I wasn't going to let anyone else have that one.
"For half an hour, Torquay barely had a kick of the ball. We had chances but we didn't take them.
"If you don't take chances at home then the crowd can get on you a bit and we were probably lucky not to go in behind at half-time.
"We eventually got in to our rhythm and we created enough chances to win the game."
Swindon Town 01 Foderingham 03 Byrne 05 Hall 22 Ward 23 Barthram 06 Reis (Storey - 46' ) 08 Mason (Luongo - 46' ) 11 Pritchard (Smith - 87' ) 15 Kasim 19 Thompson 10 Williams Substitutes 30 Bedwell 02 Thompson 14 McEveley 21 Smith 41 Archibald-Henville 08 Luongo 32 Storey Torquay United 13 Rice 02 Tonge (Thompson - 89' Booked ) 03 Nicholson 04 Downes 05 Pearce 07 Mansell 08 Harding 10 Bodin 12 Chapell 09 Hawley (Benyon - 70' ) 16 Ball Substitutes 33 Thompson 21 Cruise 06 Lathrope 11 Cameron 15 Thompson 31 Sullivan 26 Benyon (Cameron - 81' )