Tyreece John-Jules netted a hat-trick as Kilmarnock fought to a thrilling win over St Mirren that boosted their hopes of climbing out of the Scottish Premiership play-off spot.
The striker's treble, along with Greg Kiltie's header, settled an end-to-end contest at Rugby Park that drew 11th-placed Killie to within three points of Dundee and a St Mirren side who had hoped to pull clear of danger.
The visitors had a dream start, taking the lead after just eight minutes as Killian Phillips produced a cute backheel to finish after Mikael Mandron's attempt had spilled into the middle of the box.
The visitors were relatively comfortable for the majority of the half with Kilmarnock's efforts not producing clear cut chances. That all turned around in three minutes before the break.
Findlay Curtis was the provider, swinging in a perfect cross that split the St Mirren defenders. Kiltie made a well-judged run into the gap and nodded past Shamal George.
Just before the half-time whistle, Kilmarnock took the lead, and in some style. A ball into the St Mirren box was only partially cleared and a shot back into the box was deflected to the back post. John-Jules met it with an acrobatic volley that flew past George and into the back of the net.
St Mirren came out with renewed purpose after the interval and were soon level. Declan John's ball in from the left was met by Mandron, who hit a low shot across the face of goal that Kelle Roos could only palm out. Phillips met the loose ball with an emphatic finish.
With 15 minutes to go, Killie regained the lead. Joe Hugill put in an inviting ball from the left and John-Jules scored at the second attempt. Things were soon to get even better for the Kilmarnock striker.
A direct ball up the middle put the forward shoulder to shoulder with Marcus Fraser and when he won that duel he thumped an emphatic finish past George and wheeled away celebrating his hat-trick and Kilmarnock's fourth.
St Mirren pulled one back deep into injury time when Scott Tanser volleyed in after a corner but it was too late to make a difference and Kilmarnock took what could be three vital points in their fight to climb out of the relegation play-off spot.