Dundee United scored twice in a frenzied finale at Tannadice to "win ugly" against St Mirren and go level on points with third-place Rangers in the Scottish Premiership.
Kevin Holt scored a penalty opener - awarded after VAR intervention - then missed from the spot before Emmanuel Adegboyega poked in a second for Jim Goodwin's side in injury time.
St Mirren stay sixth after a first defeat in five.
United manager Jim Goodwin said: "We are really pleased with the scoreline, there wasn't too much in the game and it was scrappy. But sometimes you have to win ugly.
"We have played St Mirren three times and have kept three clean sheets, which is a testament to the players at the back because they put you under a lot of pressure."
St Mirren had the better of the opening stages but the hosts had the best opportunity when Sam Dalby was one-on-one, only to blast over the bar.
A crunching challenge from home goalkeeper Jack Walton on Toyosi Olusanya outside the area resulted in a yellow card for the Luton Town loanee, with a VAR check confirming the on-field decision.
VAR was again needed to confirm referee Matthew McDermid’s on-field call for no penalty despite the ball appearing to strike Adegboyega's arm as it was knocked out for a corner.
Ryan Strain whizzed a free-kick narrowly past the post before United team-mate Will Ferry struck the upright with from the edge of the area as the opening half ended with neither side registering a shot on target.
United kept probing and Holt shot wide before Adegboyega glanced a near-post header beyond the far post.
Olusanya's effort for the visitors was deflected off target before Holt won and scored his first penalty as Marcus Fraser caught him.
Fraser then gave away another spot-kick for a challenge on Louis Moult, with the St Mirren defender shown a red card after the referee consulted the pitch-side monitor, but Holt's effort was saved.
Adegboyega reacted first when Ellery Balcombe spilled his attempted catch from a stoppage-time corner, nudging the ball over the line to make sure of the three points.