Stevie May's double helped St Johnstone book their place in the Scottish League Cup quarter-finals at the expense of Hamilton Academical.
The striker, who spent last season on loan at Accies, headed home early on at New Douglas Park.
Anthony Andreu came close to a leveller when he fired against the post midway through the first half.
Gwion Edwards fired Saints' second and a long-range effort from May completed the Perth side's win.
Hamilton went into the game buoyed by a five-point lead at the top of the Scottish Championship, but top-flight Saints quickly dampened their hosts' enthusiasm.
Dave Mackay's cross was headed back across goal by Steven MacLean and May applied the finish.
Andreu was frustrated to see his shot rebound off the goal frame and Accies soon found themselves defending again as MacLean tested goalkeeper Kevin Cuthbert.
Another strike by Andreu flashed past Alan Mannus' goal just before the break.
Cuthbert denied Nigel Hasselbanik early in the second half and Hamilton retained hope that they could turn the tie around.
Michael Devlin was unable to keep his header down and the same player sliced wide of the St Johnstone goal moments later.
But any prospect of a comeback was ended when Hasselbaink's replacement Edwards picked up the loose ball from a slack pass-back and bundled home from close range for his first St Johnstone goal, with the Welshman having joined on loan from Swansea.
And May netted his sixth goal of the season with an excellent strike from 25 yards in the last minute.
Hamilton manager Alex Neil: "We had long spells of pressure in the second half, we maybe could've got something and got ourselves back into the match.
"I've got a really young side and we're at the start of our journey as a team. It just shows us where we want to aspire to be, the hard work that we've got to put in to play at that level.
"But I thought for spells in the game in terms of moving the ball we competed really well. I didn't think we were completely outclassed.
"Up front they were a real handful, they had pace and power and it caused us problems.
"I can't have any complaints from my lads, they tried their heart out and at times we played some nice football without really hurting them.
"St Johnstone deserve to win the tie, but not by three goals."
St Johnstone manager Tommy Wright: "I'm pleased with it. We thought it was going to be a difficulty tie and it was a difficult game.
"In the end, the quality of our play, the work-rate and our attitude was spot on. It was a a professional job and we showed a lot of quality as well throughout the game.
"Overall, we were comfortable in the game.
"Stevie May had a good all-round performance tonight, which I'm delighted with. His link-up play was good and obviously he caps it off with two good goals.
"We're just delighted to win the game and be in the cup because it is important for the club to get a good cup run.
"I'm really pleased to be in the next round and I'm absolutely delighted with the performance."
- 01 Cuthbert
- 02 Gordon
- 03 Hendrie
- 04 Michael Devlin
- 05 Canning Booked
- 10 Neil
- 11 Crawford
- 18 Mackinnon Booked
- 22 Andreu (Longridge - 81' )
- 09 McShane Booked (Ryan - 61' Booked )
- 99 Antoine-Curier
- 19 Currie
- 16 Craig Watson
- 24 Tena
- 17 Longridge
- 32 Ryan
- 01 Mannus
- 02 MacKay Booked
- 05 Wright
- 06 Anderson
- 24 Easton
- 04 Cregg (Miller - 90' )
- 07 Millar
- 08 McDonald (Wotherspoon - 90' )
- 11 Hasselbaink (Edwards - 75' )
- 09 MacLean
- 17 May
- 15 Banks
- 19 Miller
- 10 Wotherspoon
- 14 Edwards
- 16 Caddis
Live Text Commentary
Full Time The final whistle goes and the game is over.90:00 +2:28 Goal scored
Goal! - Stevie May - Hamilton 0 - 3 St J'stone Stevie May scores with their right foot. Hamilton 0-3 St Johnstone.90:00 +0:16 Substitution
Substitution David Wotherspoon is brought on as a substitute for Gary McDonald.89:55 Substitution
Substitution Gary Miller replaces Patrick Cregg.88:56
Free kick taken by Stephen Hendrie.88:43
Foul by Stevie May on Stephen Hendrie, free kick awarded.87:55
Shot by Andrew Ryan.85:54
Stevie May provided the assist for the goal.85:54 Goal scored
Goal! - Gwion Edwards - Hamilton 0 - 2 St J'stone Gwion Edwards heads the ball into the goal. Hamilton 0-2 St Johnstone.85:36
Free kick taken by Alan Mannus.85:19
Unfair challenge on Patrick Cregg by Louis Longridge results in a free kick.85:04
Steven Anderson makes a clearance.85:01
Darian Mackinnon takes the free kick.84:47
Free kick awarded for an unfair challenge on Mickael Antoine-Curier by Gary McDonald.84:31
Free kick taken by Brian Easton.84:21
Free kick awarded for an unfair challenge on Gary McDonald by Darian Mackinnon.83:38
Frazer Wright makes a clearance.83:29
Corner taken by Alister Crawford.83:10
Alister Crawford takes a shot. Alan Mannus parries the ball but the danger is not over.82:59
Corner taken by Alister Crawford from the right by-line.
Free kick taken by Alister Crawford.81:46 Booking
David Mackay goes into the book for unsporting behaviour.81:36
Free kick awarded for an unfair challenge on Andrew Ryan by David Mackay.81:21
Clearance made by Louis Longridge.81:06
Corner taken by Brian Easton from the right by-line.80:08 Substitution
Substitution Anthony Andreu leaves the field to be replaced by Louis Longridge.79:04
Martin Canning has an effort at goal and missed to the left of the net.78:35
Clearance made by Alan Mannus.78:32
Corner taken by Alister Crawford.76:48
Header by Michael Devlin goes over the bar.76:41
Alister Crawford crosses the ball in from the free kick.76:33
Free kick awarded for a foul by Chris Millar on Alister Crawford.74:21 Substitution
Substitution Gwion Edwards joins the action as a substitute, replacing Nigel Hasselbaink.73:23
Ziggy Gordon manages to make a clearance.73:17
Stevie May restarts play with the free kick.73:04 Booking
The referee shows Martin Canning a yellow card for unsporting behaviour.72:43
Unfair challenge on Steven MacLean by Martin Canning results in a free kick.71:46
Nigel Hasselbaink takes the free kick.71:37
Gary McDonald concedes a free kick for a foul on Anthony Andreu.70:46
Stevie May takes a shot and goes harmlessly over the bar.70:41
David Mackay produces a cross.68:50
Shot by Mickael Antoine-Curier missed to the right of the target.68:15
Brian Easton takes the free kick.67:36 Booking
Andrew Ryan is given a yellow card.67:27
Foul by Andrew Ryan on Frazer Wright, free kick awarded.66:42
Free kick taken by Alan Mannus.65:57
Mickael Antoine-Curier concedes a free kick for a foul on Nigel Hasselbaink.65:47
Stephen Hendrie takes the free kick.65:27
Free kick awarded for a foul by Stevie May on Alister Crawford.64:58
Shot by Alister Crawford went over the net.61:03
Brian Easton takes the free kick.60:58 Substitution
Substitution Jon McShane leaves the field to be replaced by Andrew Ryan.60:38 Booking
Darian Mackinnon goes into the book.60:29
Foul by Darian Mackinnon on Frazer Wright, free kick awarded.58:42
Stephen Hendrie takes the chance to get an effort at goal and missed to the left of the target.58:25
Kevin Cuthbert restarts play with the free kick.58:10
Stevie May concedes a free kick for a foul on Ziggy Gordon.57:10
Free kick taken by Steven Anderson.56:57
David Mackay fouled by Jon McShane, the ref awards a free kick.55:50
Ziggy Gordon produces a cross.55:05
Free kick taken by Kevin Cuthbert.55:02
The referee blows for offside against Stevie May.53:37
Alister Crawford takes a shot. Alan Mannus safely holds on.52:41
Shot by David Mackay went over the bar.52:01
Alister Crawford manages to make a clearance.51:55
Corner taken by Stevie May from the right by-line.51:26
Corner taken by Stevie May.51:03
Corner taken by Brian Easton from the right by-line.50:34
Free kick taken by David Mackay.50:20
Foul by Jon McShane on David Mackay, free kick awarded.48:42
Shot by Nigel Hasselbaink.47:33
Brian Easton restarts play with the free kick.47:23
Mickael Antoine-Curier challenges Frazer Wright unfairly and gives away a free kick.46:10
Shot by Stevie May. Kevin Cuthbert safely holds on.45:54
David Mackay restarts play with the free kick.45:51
The assistant referee flags for offside against Jon McShane.45:01
The referee gets the second half underway.45:00 +1:03 Half time
Half Time It is the end of the first-half.44:45
Free kick taken by Alan Mannus.44:10
Steven Anderson fouled by Mickael Antoine-Curier, the ref awards a free kick.43:41
Anthony Andreu takes the chance to get an effort at goal and missed to the right of the goal.42:13
Stephen Hendrie takes the free kick.42:08
Steven MacLean gives away a free kick for an unfair challenge on Alexander Neil.39:38
Chris Millar handles the ball and concedes a free kick.39:18
Stevie May takes the free kick.38:52
Free kick awarded for an unfair challenge on Stevie May by Martin Canning.35:33
Stevie May has an effort at goal and missed to the right of the net.34:06
Chris Millar takes a shot and cleared the goal.33:54
Corner from the right by-line taken by Brian Easton.30:10
Free kick taken by Steven Anderson.29:48
Mickael Antoine-Curier concedes a free kick for a foul on Steven Anderson.27:33
Free kick taken by Martin Canning.26:54
Martin Canning fouled by Nigel Hasselbaink, the ref awards a free kick.26:06
Steven Anderson takes the free kick.25:47
Foul by Alexander Neil on Steven MacLean, free kick awarded.24:53
Ziggy Gordon takes a shot. Alan Mannus safely holds on.24:00
Clearance made by Mickael Antoine-Curier.23:55
Corner taken by Stevie May.23:29
Corner from the right by-line taken by Brian Easton.20:22
Corner taken by Brian Easton from the left by-line.17:22
Anthony Andreu takes a shot and hits the post.17:01
Free kick taken by Kevin Cuthbert.16:46
The official flags Nigel Hasselbaink offside.16:14
Stephen Hendrie restarts play with the free kick.16:03
Steven MacLean challenges Michael Devlin unfairly and gives away a free kick.15:00
Booking for Jon McShane.15:00 Booking
Alan Mannus takes the free kick.14:09
Jon McShane concedes a free kick for a foul on Gary McDonald.13:33
Alexander Neil restarts play with the free kick.13:27
Free kick awarded for an unfair challenge on Alister Crawford by Patrick Cregg.12:10
Mickael Antoine-Curier manages to make a clearance.12:05
Free kick crossed by Brian Easton.11:42
Ziggy Gordon gives away a free kick for an unfair challenge on Nigel Hasselbaink.10:47
Alister Crawford takes a shot and went wide left of the goal.10:39
Brian Easton manages to make a clearance.10:33
Corner taken by Alister Crawford from the right by-line.9:44
Free kick taken by Gary McDonald.9:29
Mickael Antoine-Curier gives away a free kick for an unfair challenge on David Mackay.9:21
Steven MacLean makes a clearance.9:10
Free kick crossed by Alister Crawford.9:04
Free kick awarded for a foul by Nigel Hasselbaink on Ziggy Gordon.6:35
Michael Devlin restarts play with the free kick.6:24
Foul by Chris Millar on Alexander Neil, free kick awarded.5:27
Alan Mannus restarts play with the free kick.5:08
Unfair challenge on Brian Easton by Jon McShane results in a free kick.3:41
Assist by Steven MacLean.3:41 Goal scored
Goal! - Stevie May - Hamilton 0 - 1 St J'stone Stevie May grabs a goal with a headed effort. Hamilton 0-1 St Johnstone.0:00
The referee starts the match.
Live data and text provided by our data suppliers