Alloa staged a remarkable comeback to reach the final of the Petrofac Training Cup with a 3-2 win over Rangers at the Indodrill Stadium.
It was goalless at the break on Wednesday evening but the visitors looked to be in control when Kenny Miller and Dean Shiels struck to give them a 2-0 advantage.
Greig Spence gave Barry Smith's men hope when he reduced the deficit in 72 minutes and Ryan McCord equalised two minutes later before Spence steered home a dramatic last-minute winner.
The Wasps can now look forward to their third appearance in the final, having beaten Inverness Caley Thistle on penalties in 1999/00 and lost to Airdrie two years later.