St Johnstone reached the Scottish League Cup quarter-finals after victory over 10-man Queen's Park.
Saints went ahead when Steven MacLean flicked home his first goal for the club, while Queen's levelled through Michael Keenan's 35-yard strike.
MacLean got a second to put Saints back in front before the Spiders went down to ten men when Andrew Robertson was shown a straight red card.
And late goals from Murray Davidson and Liam Craig sealed the win.
Saints, in good form after successive Scottish Premier League wins over Celtic and Ross County, passed up an early opportunity when MacLean shot over from inside the six-yard box after only six minutes.
However, the striker made amends when he bundled home Daivd Robertson's cross from close range to open his Saints account.
The home side went looking for a second to kill the tie, but were almost caught out by a quick Queen's counter.
Hotly-tipped youngster David Anderson fed Jamie Longworth after dispossessing David McCracken, and Saints keeper Jonny Tuffey had to force Longworth's 20-yard drive over the bar.
However, this was a taste of things to come, as Keenan's spectacular shot from distance flummoxed Tuffey, who could only palm the ball into the net off the post.
MacLean then shot over again after Nigel Hasselbaink and Gregory Tade combined to set up the former Rangers youngster.
But, MacLean finally netted his second to calm McDiarmid Park nerves with a 14-yard strike after Murray Davidson played him in.
Steven Anderson's header should have increased the home side's advantage, but his free header hit the bar and went over.
Then, any hopes the Spiders had of getting back into the game evaporated as Robertson saw red for a lunge on Saints right-back Gary Miller.
Davidson scored Saints' third shortly after with a finish from the edge of the box, before Craig's volley made the victory secure.
St Johnstone manager Steve Lomas: "This was all about mentality on the night.
"We got a few goals as well which makes it all the more pleasing, so all in all it was a pretty good night's work.
"I'm pleased for Steven MacLean to get those two goals.
"He's like any striker who needs goals for his confidence and hopefully he can go from strength to strength."
Queen's Park manager Gardner Speirs: "We were well beaten. We've got to hold our hands up.
"When we got the equaliser we thought we might have gone on to do something but then they went back in front not that long after.
"But I can't fault the lads for their effort. They worked extremely hard so all credit to them - although we know ourselves that we can do better.
"It obviously didn't help when we then went down to 10 men near the end."
- 15 Tuffey
- 06 Anderson
- 18 McCracken
- 19 Miller
- 33 Scobbie
- 08 Davidson (Caddis - 78' )
- 12 Robertson
- 14 Moon
- 09 Tade (Beattie - 78' )
- 11 Hasselbaink (Craig - 78' )
- 17 MacLean
- 01 Mannus
- 26 Caddis
- 04 Cregg
- 10 Craig
- 16 Beattie
- 01 Parry
- 02 Little Booked
- 03 Robertson Dismissed
- 04 Bradley
- 05 Brough Booked
- 06 Keenan
- 08 Anderson
- 09 Quinn (Smith - 82' )
- 07 Shankland (Gallagher - 78' )
- 10 Longworth
- 11 Burns (Watt - 72' )
- 20 Lockhead
- 12 Gallagher
- 14 Capuano
- 15 Watt
- 16 Smith
Live Text Commentary
Full Time The referee blows for the end of the match.90:00 +0:27
Outswinging corner taken by Liam Craig, Paul Gallagher manages to make a clearance.87:39
Craig Beattie takes a shot. Save by Neil Parry. Liam Craig takes the inswinging corner, Michael Keenan makes a clearance.84:53 Goal scored
Goal! - Liam Craig - St J'stone 4 - 1 Queen's P Goal scored by Liam Craig from inside the penalty box to the bottom left corner of the goal. St Johnstone 4-1 Queens Park.81:27
Neil Parry takes the indirect free kick.81:27 Substitution
Substitution Craig Smith on for Anthony Quinn.81:27
David Robertson challenges Paul Gallagher unfairly and gives away a free kick.79:29
Steven MacLean gives away a free kick for an unfair challenge on Anthony Quinn. Free kick taken by Peter Bradley.77:17 Substitution
Substitution Paul Gallagher comes on in place of Lawrence Shankland.77:17 Substitution
Substitution Liam Caddis joins the action as a substitute, replacing Murray Davidson.77:17 Substitution
Substitution (St Johnstone) makes a substitution, with Craig Beattie coming on for Gregory Tade.77:17 Substitution
Substitution Nigel Hasselbaink goes off and Liam Craig comes on.75:54
Assist on the goal came from Gregory Tade.75:54 Goal scored
Goal! - Murray Davidson - St J'stone 3 - 1 Queen's P Murray Davidson grabs a goal from just outside the penalty box to the bottom right corner of the goal. St Johnstone 3-1 Queens Park.73:22
Gary Miller restarts play with the free kick.73:22 Dismissal
Dismissal Andrew Robertson sent from the field by the ref for serious foul play.73:08
Foul by Andrew Robertson on Gary Miller, free kick awarded.71:42
Free kick taken by James Brough.71:42 Substitution
Substitution Ian Watt comes on in place of Sean Burns.71:42
The referee blows for offside.
Sean Burns fouled by Gregory Tade, the ref awards a free kick. Andrew Robertson takes the indirect free kick.69:27
David Robertson concedes a free kick for a foul on Michael Keenan. James Brough takes the indirect free kick.66:38
Foul by Gregory Tade on Andrew Robertson, free kick awarded. Andrew Robertson takes the free kick.65:57
The official flags Nigel Hasselbaink offside. Neil Parry restarts play with the free kick.65:06
Thomas Scobbie takes the free kick.65:06 Booking
Booking Richard Little is cautioned by the ref for dissent.64:59
Richard Little concedes a free kick for a foul on Nigel Hasselbaink.64:15
Free kick awarded for an unfair challenge on James Brough by Nigel Hasselbaink. Neil Parry takes the indirect free kick.57:58
Free kick awarded for an unfair challenge on Andrew Robertson by Murray Davidson. Direct free kick taken by Andrew Robertson.56:39
Unfair challenge on David Robertson by Michael Keenan results in a free kick. Thomas Scobbie sends in a cross, Steven Anderson takes a shot.54:45
Nigel Hasselbaink produces a left-footed shot from deep inside the penalty box which goes wide of the left-hand post.53:45
Effort on goal by Nigel Hasselbaink from just outside the penalty area goes harmlessly over the target.51:52
Murray Davidson takes a shot. James Brough gets a block in. Corner taken by Thomas Scobbie from the left by-line, Neil Parry makes a save.49:53
Inswinging corner taken right-footed by Richard Little from the left by-line, Steven Anderson makes a clearance.46:44
Corner from left by-line taken by Kevin Moon.45:01
The second half kicks off.45:00 +1:07 Half time
Half Time The ref blows to end the first period.45:00 +0:27
Murray Davidson takes a shot. Comfortable save by Neil Parry.41:10
Steven MacLean challenges David Anderson unfairly and gives away a free kick. Peter Bradley takes the direct free kick.39:05
The assist for the goal came from Murray Davidson.39:05 Goal scored
Goal! - Steven MacLean - St J'stone 2 - 1 Queen's P Steven MacLean finds the back of the net with a goal from inside the box to the top right corner of the goal. St Johnstone 2-1 Queens Park.37:11
Steven MacLean produces a header from inside the area that goes over the bar.35:40
Strike from close range by Steven MacLean clears the bar.33:42
Free kick awarded for an unfair challenge on Nigel Hasselbaink by Richard Little. Direct free kick taken by Kevin Moon.31:56 Booking
Booking Booking for James Brough for unsporting behaviour.29:39
Assist on the goal came from Jamie Longworth.29:39 Goal scored
Goal! - Michael Keenan - St J'stone 1 - 1 Queen's P Michael Keenan grabs a goal. St Johnstone 1-1 Queens Park.24:25
Jamie Longworth takes a shot. Save by Jonny Tuffey. Corner taken left-footed by Andrew Robertson from the left by-line, clearance made by David Robertson. Corner taken by Richard Little. Corner from the right by-line taken by Richard Little, David McCracken manages to make a clearance.19:37
Nigel Hasselbaink takes a shot. James Brough manages to make a clearance.17:22
David Robertson provided the assist for the goal.17:22 Goal scored
Goal! - Steven MacLean - St J'stone 1 - 0 Queen's P Steven MacLean scores a goal from inside the six-yard box high into the middle of the goal. St Johnstone 1-0 Queens Park.16:23
A cross is delivered by David Robertson,15:37
Long range shot from David Anderson misses to the left of the goal.11:29
Unfair challenge on Steven Anderson by Anthony Quinn results in a free kick. Indirect free kick taken by Jonny Tuffey.10:33
Free kick awarded for a foul by Jamie Longworth on Murray Davidson. Free kick taken by Murray Davidson.6:36
Close range effort by Steven MacLean clears the crossbar.5:43
Effort from inside the area by Lawrence Shankland misses to the left of the target.4:41
Corner taken by Thomas Scobbie.3:09
The referee blows for offside. Jonny Tuffey restarts play with the free kick.2:36
Free kick awarded for a foul by Steven Anderson on Jamie Longworth. Richard Little restarts play with the free kick.1:57
David Robertson produces a right-footed shot from outside the penalty box and misses right.0:59
David Anderson concedes a free kick for a foul on David Robertson. Free kick taken by Thomas Scobbie.0:00
The referee gets the game underway.
Live data and text provided by our data suppliers