A Peter MacDonald-inspired Morton came from behind to beat Raith 2-1 in a dramatic Scottish Cup fourth round encounter.
Raith went ahead with the first-half drawing to a close after Marc Smyth brought down John Baird in the area.
Baird's power penalty was saved by Colin Stewart but Patrick Clarke pounced on the rebound to put the home side ahead.
The tie turned with the introduction of MacDonald on the hour, who soon played in Archie Campbell to place home the Morton equaliser.
And when Grant Murray fouled MacDonald in the box, the striker dusted himself off to rifle the penalty past David McGurn, grabbing his 12th of the season and securing the Ton's progress to the next round.