Sheffield Wednesday have overturned a two-goal first-half deficit at Oldham Athletic to book their place in the second round of the Capital One Cup.
Oldham took the lead after just seven minutes when Jordan Slew turned home James Wesolowski's cross from the right to the bottom corner.
Another ball from the right wing resulted in a second goal for the hosts 20 minutes later when Jean Yves Mvoto Owono headed home Lee Croft's centre.
Wednesday had a chance to pull a goal back before the interval when Croft felled Michail Antonio in the area but Nejc Pecnik blazed the spot kick over.
Croft was in the action again moments after the break and he almost restored the two-goal advantage, only for Wednesday keeper Chris Kirkland to parry away.
The visitors got a goal back in the 53rd minute when Jermaine Johnson's low shot from outside the area fizzed past Alex Cizak.
Wednesday went on to level the match soon after when Chris O'Grady nodded home Miguel Angel Llera's delivery.
O'Grady then completed the turnaround with Wednesday's third goal in 17 minutes, beating Cizak with a low finish.
Antonio netted Wednesday's fourth with a drilled shot from the edge of the box with three minutes left on the clock.