Atdhe Nuhiu's late winner saw Sheffield Wednesday beat local rivals Rotherham in the second round of the Carabao Cup.
The Kosovo international settled the tie in the 96th minute, reacting quickest to smash high into the net.
Freddie Ladapo should have put the hosts ahead but poked wide when one-on-one with the goalkeeper.
Fernando Forestieri curled over for Wednesday but Nuhiu settled the game to set up a third-round tie against Premier League side Everton.
Wednesday striker Jordan Rhodes came close but his header from Morgan Fox's whipped cross was straight at Daniel Iversen.
And a cross from substitute Kadeem Harris was met menacingly by Fox but his header flew just wide.