Marc McNulty's stoppage-time winner helped Livingston come from two goals down to beat Cowdenbeath 3-2 in a thriller at Central Park.
New Cowdenbeath boss Jimmy Nicholl had seen his side leading 2-0 with just 13 minutes left, only to come away empty handed and with a fourth successive league defeat.
Kane Hemmings turned in Kenneth Adamson's 56th-minute cross to give his side the lead before making it two 13 minutes later with a neat finish into the corner from 12 yards.
McNulty started the comeback when he headed in Danny Denholn's cross before Andrew Barrowman levelled things up in the 87th minute, forcing the ball in from close range after the hosts failed to deal with a corner.
The visitors completed an incredible turnaround in added time when McNulty slammed home after Barrowman's shot was parried by Grant Adam.