Ross County maintained their nine-point advantage at the top of Scottish Football League Division One with a home victory over Raith Rovers, who fell to the foot of the table.
Raith's Allan Walker squeezed home the opener from the left by-line on 12 minutes.
Rocco Quinn levelled with a clinical right-foot finish but the visitors took the lead again in the 36th minute when Walker grabbed his second with a stunning drive.
But County were level by half-time, Colin McMenamin heading home Gary Miller's cross.
McMenamin nodded his second from Michael Gardyne's centre to give the hosts the lead for the first time.
And Gardyne made sure of the points with a 25-yard strike nine minutes from time.
Ross County: Fraser, Miller, Boyd, Munro, Fitzpatrick (Quinn 17), Brittain (Corcoran 85), Lawson, Kettlewell, Vigurs, Gardyne, McMenamin. Subs Not Used: Malin, Byrne, Craig.
Goals: Quinn 28, McMenamin 45, 62, Gardyne 81.
Raith: McGurn, Murray, Ellis (Davidson 51), Hill, Dyer, Allan Walker, Holt (Thomson 85), Jamie Walker (Brian Graham 68), Smith, Prychynenko, Baird. Subs Not Used: Roy, Colin Wilson.
Booked: Hill, Ellis, Allan Walker, Baird.
Goals: Allan Walker 12,36.
Ref: Craig Charleston