John O'Neill's dramatic late strike claimed a 2-1 victory for Queen of the South at Stenhousemuir - a result which virtually secures their safety in Scottish League Division Two.
With time running out, O'Neill collected a loose clearance and ran into the box before lifting the ball over Gary Gow in the Stenhousmuir goal.
The visitors had taken the lead in the 61st minute when Peter Weatherson rose unchallenged to head home his 15th goal of the season from Mark Angel's corner.
However, the home side equalised a minute later when Scott Miller's cross found Brian McCollighan, who showed great composure to sweep the ball into the net from six yards.
Both sides continued to press and a draw looked likely until O'Neill's intervention.
In stoppage time, home substitute David Menelaws hammered a close-range effort against the base of the upright, but the visitors held out to make certain of their place in the division next term.