Andrew Geggan scored a last-gasp winner as Dunfermline recorded a 2-1 victory over Stenhousemuir.
The visitors took the lead in the 14th minute when Faissal El Bakhtaoui tucked the ball past Stenny shot-stopper Chris Smith from close range to score his first goal for the club.
Ross McMillan came close to levelling things up in the 24th minute when his header clattered the bar.
The Warriors finally equalised in the 84th minute when Sean Lynch nodded home from the middle of the box.
Just as the hosts thought they had secured a share of the spoils, Geggan headed in from six yards in stoppage time to snatch all three points.