Newly-crowned champions Ross County celebrated their First Division title triumph with victory at Ayr United.
Michael McGowan's deflected free-kick dipped narrowly wide and Martyn Campbell had a shot saved as Ayr enjoyed the better first-half chances.
But County took the lead when Michael Gardyne took advantage of a defensive mix-up to fire home.
Alan Trouten levelled but Colin McMenamin headed the visitors ahead again and Sam Morrow added a third.
Dundee's draw with Queen of the South on Tuesday
County as champions
, the Dingwall side earning promotion to the Scottish Premier League.
County's travelling fans were in party mood
But it was second-bottom Ayr who looked the more likelier side in the first half with Liam Tomsett denied by goalkeeper Michael Fraser after the efforts by McGowan and Campbell.
The deadlock was broken seconds after the interval as Ayr failed to clear Richard Brittain's cross and Gardyne was presented with a shooting chance that he converted.
Eddie Malone's cross hit the County crossbar before Trouten burrowed through the visiting defence to level with a well-placed shot.
County's Iain Vigurs had struck the post before the equaliser and the visitors regained the lead on 67 minutes when McMenamin nodded home Paul Lawson's cross.
Ayr probed in search of a second equaliser but substitute Morrow blasted a shot into the roof of the net to leave the hosts a point clear of bottom club Queens and two points off Raith Rovers.
Cuthbert, John Robertson, Malone, Martyn Campbell (Trouten 46), Smith, Geggan, Tiffoney (Moffat 85), Tomsett, Parker, Wardlaw (Roberts 77), McGowan. Subs Not Used: McWilliams, Ross Robertson.
Fraser, Miller, Morrison, Boyd, Munro, Lawson, Gardyne (Craig 81), Kettlewell (Quinn 76), McMenamin (Morrow 81), Brittain, Vigurs. Subs Not Used: Malin, Corcoran.
Gardyne 46, McMenamin 67, Morrow 84.