Clinical Callum Hendry was the hero.
The forward unleashed a stunner of a left-footed strike deep in stoppage time to clinch St Johnstone a dramatic three points in Perth.
He has been a shining light in recent times and earlier had to haul Saints level following an early Kevin van Veen opener for Motherwell.