Stevie Crawford made a dream return to East End Park with a brilliant winner as Dunfermline Athletic came from behind to defeat Kilmarnock.
Gary Mason and Darren Young scored for Dunfermline
Danny Invincibile drove home the opening goal for the dominant visitors, but Darren Young bundled the equaliser home after a Stephen Simmons flick on.
Gary Wales' 18-yard drive put Killie back in front after the break.
But Gary Mason forced home another equaliser before newly-re-signed Crawford fired in after a mazy run.
Crawford, transferred from Aberdeen last week, and fellow new signing Jim Hamilton had formed Dunfermline's strike partnership.
With fit-again Simmons and Calum Woods returning to the team, Jamie McCunnie, Andy Tod, Greg Ross and Souleymane Bamba all dropped to the bench.
David Fernandez was handed his first Kilmarnock start at the expense of Peter Leven, while Wales came in for Colin Nish.
And the Spaniard inspired Killie to a bright start, Fernandez setting up Invincibile for a powerful drive over the bar.
But the Australian midfielder made no mistake soon after when he comfortably beat goalkeeper Marius De Vries with a low, right-footed effort across goal that found its way inside the Dutchman's far post.
Stevie Crawford scored the winner on his debut
Dunfermline were struggling to create chances, although Mason went close with a 30-yard drive that just cleared the crossbar.
Simmons' header from an Owen Morrison cross failed to trouble Graeme Smith, but the goalkeeper was eventually beaten after 42 minutes.
Another Morrison cross found Simmons, whose header across goal evaded Smith's grasp and Young turned the ball home.
That sparked the Pars into life and Young nearly stole a second just before the break when he turned a shot from Aaron Labonte past the post.
But Wales put his side into the lead after a measured pass from Allan Johnston, turning Scott Wilson inside and out before dispatching a driven shot from 18 yards that easily beat De Vries.
Yet Kilmarnock offered little as an attacking force after the break and Dunfermline again came back fighting.
A Morrison cross caused confusion in the visiting penalty box and Mason bundled the ball home during the ensuing goalmouth scramble.
And Crawford put the Pars in the lead, beating two men before nutmegging goalkeeper Smith.
Dunfermline: De Vries, Labonte, Scott Wilson, McGuire, Owen Morrison, Woods (Ross 45), Mason, Young, Simmons (Daquin 60), Crawford, Hamilton.
Subs Not Used: McKenzie, McCunnie, Tod, Bamba, Williamson.
Booked: Young, Simmons, Owen Morrison.
Goals: Young 42, Mason 73, Crawford 84.
Kilmarnock: Smith, Fowler, Greer, Frazer Wright, Hay, Invincibile (Di Giacomo 88), Grant Murray, Johnston, Naismith, Wales, Fernandez (Nish 80).
Subs Not Used: Harpur, Dodds, O'Leary, Leven, Adams.
Goals: Invincibile 9, Wales 52.
Ref: K Clark