Dundee United achieved the ideal preparation for the forthcoming play-offs after overcoming second-placed Livingston 2-0 at Tannadice.
Craig Slater gave them an early second-half lead that was crucially improved by Scott McDonald with just five minutes remaining.
That means United now take on Dunfermline Athletic, initially at East End Park on Tuesday in their play-off quarter-final first-leg. Three days later and the two clubs meet again at Tannadice.
On loan Colchester United midfielder Slater broke the deadlock on 54 minutes following good work between Scott Fraser and Sam Stanton.
Craig Halkett had already headed against the woodwork for the visitors early on, while Fraser’s reply was cleared off the line by Alan Lithgow.
Livi’s Jackson Longridge also saw a header clipping the crossbar; Ryan Hardie similarly going close before McDonald wrapped it up by turning in Billy King’s late cross.
Dundee United: Mehmet, Ralston, Mohsni, Murdoch, Robson, Gillespie (Briels 88), Stanton, Slater (Smith 84), Fraser (Mikkelsen 73), King, McDonald
subs (unused): Scobbie, Edjenguele, Lewis, Glass
Goals: Slater (54), McDonald (85)
Livingston: Alexander, Gallagher, Halkett, Lithgow, Thompson (Frizzell 63), Pittman, Byrne (Longridge 72), Jacobs, Cadden (Mullin 77), Hardie, Miller
subs (unused): Buchanan, Robinson, Maley, De Vita
Ref: G. Aitken