A last-gasp Callum Hendry strike snatched St Johnstone a 3-2 win at home to Hamilton and ended their long wait for a first Ladbrokes Premiership victory.
Substitute Hendry had been on the field for just three minutes when he pounced to crash home the 89th-minute winner in a topsy-turvy contest.
After nine games without a victory, Saints manager Tommy Wright was rewarded for a dominant display.
Accies substitute Steven Davies converted a spot-kick six minutes from time after Murray Davidson was adjudged to have handled, but Saints dug deep and Hendry was their saviour.
Midfielder David Wotherspoon celebrated his 250th appearance with a brace after Mickel Miller had snatched Hamilton a first-half lead.
Saints remain at the foot of the table, but in a tightly-packed league they closed the gap to a point on nearest rivals Hibernian.
Before beginning their warm-up, referee Alan Muir and his assistants held a minute’s silence on the touchline in memory of SFA head of refereeing John Fleming.
The home side began on the front foot and Accies goalkeeper Owain Fon Williams was relieved when a back-post touch from Wotherspoon on Drey Wright’s cross fell kindly to him in the fourth minute.
A teasing 15th-minute Wotherspoon cross just needed a touch but Stevie May could not stretch far enough to provide a close-range finish.
Three minutes later Hamilton rode their luck when Davidson’s 20-yard shot crashed back off the crossbar.
But yet again Saints found themselves a goal behind in the 25th minute after early domination, falling victim to a slick Hamilton counter-attack.
This time Miller’s pace proved too hot for Scott Tanser to handle from Adrian Beck’s lay-off and the striker calmly rolled a neat finish past advancing keeper Zander Clark.
But midfielder Wotherspoon marked his milestone appearance for his hometown team by ramming Saints level in the 36th minute after his initial effort from 16 yards had been blocked.
With the interval looming, Wright missed from eight yards with the target at his mercy.
The Englishman had played in Matty Kennedy and the striker’s rising shot was diverted by Fon Williams, only for Wright to blaze the gilt-edged chance over the bar.
Saints were denied by the woodwork again 11 minutes after the break, when Wotherspoon’s crisply-struck 25-yard strike rebounded from an upright and May curled the loose ball wide from the edge of the box.
The St Johnstone midfielder persevered, though, and on the hour he latched onto a May pass, sold the defenders a dummy and sent a precise 16-yard right-foot shot curling into the far corner.
But after Davies drew Accies level from the spot, Hendry smashed in the winner.
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.