Lee Mair grabbed a last-gasp winner as St Mirren scraped past Hamilton into the quarter-finals of the Scottish Communities League Cup.
The meeting at St Mirren Park appeared to be heading for extra-time, with nothing to separate the two sides until Mair struck deep into injury-time to ensure the Buddies' name would be in the draw for the next round.
St Mirren boss Danny Lennon made three changes from the side who slumped to defeat to Kilmarnock at the weekend for the clash with Hamilton.
Graham Carey, Dougie Imrie and Sam Parkin were drafted into the team and Steven Thompson, David van Zanten and Gary Teale were dropped to the bench.
Accies were without strikers Jon McShane and Kieran Miller through injury, with injury doubt Andy Ryan on the bench, while on-loan St Johnstone forward Stevie May was unavailable for selection.
The first chance fell to Saints in the opening minute when Kenny McLean burst into the box only to drag his shot just wide of the upright.
At the other end, Hamilton should have opened the scoring when Louis Longridge raced on to a James Keatings ball and saw his effort fizz across the face of goal and wide when he should have hit the target.
Keatings then had a go himself but he rifled well over the bar, with Craig Samson untroubled between the sticks.
Saints were threatening again when what appeared to be a harmless cross come shot from Imrie took a major deflection and a full-stretch Kevin Cuthbert was called into action to tip just over.
The home side made their first change 10 minutes before the break when Lewis Guy was replaced by Thompson, with it unclear whether the substitution was down to injury or not.
With the tie still deadlocked at half-time following a fairly drab first half, Saints made another switch for the second half, with McLean making way for van Zanten.
Jim Goodwin could have sparked this match into life shortly after the restart but sent his angled drive blazing over the bar instead as both sides struggled to find the opener.
Accies threw Ziggy Gordon into the action for Gary Fisher on the hour mark with nothing to separate the teams.
Saints looked slightly more threatening in front of goal and a thunderous 25-yard free-kick from Carey forced an impressive save from Cuthbert.
The Accies goalkeeper came to the rescue again moments later, this time to tip a close range header from Carey past the post as the home side pushed for a late winner.
Saints' pressure finally paid off deep into injury time when Mair threw himself in front of Carey's corner and his header found the back of the net with seconds to go.
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules hereComments are closed on this article