Dundee scored a late brace as they temporarily denied Ross County of the First Division title with a 4-1 win over Ayr.
The home side opened the scoring in the 20th minute when Jamie McCluskey broke into the area before producing a neat finish.
Steven Milne added a second just after the hour mark with a finish into the bottom corner from 18 yards.
The Honest Men almost pulled a goal back immediately but Michael Moffat's effort cannoned back off the bar.
Mark Roberts did reduce the deficit 13 minutes from time when he stabbed the ball home inside the six-yard box.
But victory was all-but ensured in stoppage time when Jake Hyde restored the two-goal lead with a fine finish into the top corner before Ryan Conroy added a fourth in the final minute with an equally impressive 18-yard strike.