Ryan McGuffie fired Queen of the South into the Ramsdens Cup final after a 2-1 extra-time win over Arbroath.
McGuffie tucked his shot into the top corner from just inside the penalty area after he was teed up by Nicky Clark with just three minutes remaining.
Derek Young had fired them ahead after nine minutes when he collected Daniel Orsi's pass and crashed home from 20 yards.
Arbroath hit back just before the hour mark when Paul Currie's corner was headed in by Alex Keddie.
Both sides had chances to win it in normal time but Clark head over from close range while Arbroath's Steven Doris was denied by a block from Mark Durnan, and so McGuffie's strike proved decisive in extra time.