St Johnstone secured a stunning late win for the second game in succession as Allan McManus's volley won all three points against Ross County.
Simon Mensing took advantage of a great Jason Scotland cross to put Saints ahead early in the first half.
County struck back through Don Cowie's close-range strike in the 62nd minute.
But McManus's superb strike in the final seconds proved decisive for Saints to keep them in the Division One promotion race.
St Johnstone: Cuthbert, Lawrie, Stanic, Mensing, McManus, Anderson, Hardie (Jackson 54), Sheerin, Milne (MacDonald 74), Scotland, McLaren (Dyer 67).
Subs Not Used: Dobbie, Halliwell.
Goals: Mensing 11, McManus 90.
Ross County: Samson, Smith, McKinlay, Dowie (Webb 46), Wilkie, McCulloch, Cowie (Hooks 84), Moore (Crooks 71), Higgins, Gardyne, Robertson.
Subs Not Used: Tiernan, Malin.
Goal: Cowie 61.
Ref: S MacDonald