Kane Hemmings scored a last-gasp winner as Cowdenbeath beat Dumbarton in a thrilling encounter at Central Park.
Cowden took the lead in the 21st minute when James Stevenson rifled the ball past keeper Jamie Ewings from 20 yards.
Chris Turner scored with two long-range efforts as Dumbarton came storming back after the break.
But the hosts equalised when Jon Robertson swept the ball high into the net and Hemmings scored from close range in stoppage time.
That spared the blushes of substitute Jordan Morton, who had his 90th-minute penalty saved by Ewings.
Cowdenbeath: Adam, Brett, Armstrong, O'Brien, Adamson, McKenzie, Wedderburn (Stewart 66), Stevenson (Morton 27), Milne, Robertson, Hemmings. Subs Not Used: Flynn, Cowan, Russell, Miller.
Goals: Stevenson 21, Robertson 72, Hemmings 90.
Dumbarton: Ewings, McGinn, Graham, Barry, Scott Smith, Turner, Hugh Murray, Agnew (Prunty 88), Megginson, Nish (Kevin Smith 75), McDougall (McKerracher 29). Subs Not Used: Grindlay, Fleming, Kirkpatrick, Linton.
Goals: Turner 51,64.
Ref: Stevie O'Reilly