Liam Gormley snatched a last-gasp winner for East Fife as they claimed a 2-1 victory against Berwick after extra-time - 3-2 on aggregate - to book a place in the Second Division play-off final.
The first game had ended 1-1, and after an end-to-end first half Berwick got their noses in front from the penalty spot on the hour.
Steven Campbell brought down Dylan Easton and Darren Lavery kept his nerve to score from the spot.
It was all square in bizarre circumstance after the home side were awarded a penalty of their own.
Scott McBride's effort was parried by goalkeeper Marc McCallum, but the loose ball went in off unfortunate Rangers defender Kevin McDonald.
Chances continued to come and go as the game went into extra-time, but just as it looked like a shootout was on the horizon, Gormley volleyed in Robert Barr's cross to send the home fans into raptures.