Queen of the South reached their first ever Scottish Cup final by winning a seven-goal thriller against Aberdeen.
Steve Tosh slammed home the opener for Queens, while a header from Andrew Considine levelled before half-time.
Paul Burns finished from close range only for Aberdeen's Barry Nicholson to follow suit, while Sean O'Connor fired the Doonhamers back in front.
Considine bagged his second header of the day but John Stewart responded by lashing in the winner on 60 minutes.
The First Division side will meet either the winner of next weekend's semi-final, with St Johnstone waiting to play the winner of the Partick Thistle v Rangers replay.
If Rangers were to progress, the Dumfries team would be assured of a place in next season's Uefa Cup.