Greenock Morton booked themselves an away trip to Inverness after a goal-packed 5-2 win in their Scottish FA Cup fourth round replay at Airdrie United.
David O'Brien gave them the lead after 14 minutes before three goals in quick succession midway through the second half from Allen Jenkins (2) and Brian Graham looked to have sealed the Greenock club's place in the last 16.
A late rally from the home side gave them hope before Carlo Monti's late penalty made it 5-2.
Stranraer will host SPL side Motherwell in the Scottish Cup fifth round after edging Stenhousemuir 4-3 in another entertaining fourth round replay.
Scott Dalziel put the visitors in front after 17 minutes before Armand One scored the first of his double that bookended Stranraer's victory.