Ross County stretched their lead at the top of the Scottish First Division with victory against bottom club Queen of the South, who are now four points adrift.
Iain Vigurs latched on to Michael Fraser's pass to volley home County's opener from the edge of the area midway through the first half.
Queens levelled 12 minutes into the second half, Ryan McGuffie producing an exquisite volley into the top corner from 15 yards.
But Michael Gardyne calmly converted Stuart Kettlewell's cross to claim all three points for County 18 minutes from the end.
Fraser, Miller, Boyd, Munro, Morrison, Brittain (Corcoran 73), Kettlewell (Quinn 79), Lawson, Vigurs (Craig 74), Gardyne, McMenamin. Subs Not Used: Malin, Flynn.
Vigurs 23, Gardyne 72.
Queen of South:
Robinson, Craig Reid, McGuffie, Potter (Carmichael 8), Higgins, Johnston (Reilly 80), McKenna, McLaughlin, Alan Reid, Clark,Parkin (Brighton 62). Subs Not Used: Atkinson, Holt.
Parkin, McKenna, Craig Reid.