Rudi Skacel struck a hat-trick as 10-man Hearts claimed a fifth win in six games with a 5-2 defeat of St Mirren at Tynecastle.
Hearts captain Marius Zaliukas headed a first-minute goal before he was sent off for tripping Paul McGowan, who netted the subsequent penalty after 13 minutes.
Steven Thompson headed the visitors in front, but Skacel levelled after 23 minutes, netted his second after 64 minutes, his third after 69 minutes and John Sutton struck a 90th-minute fifth as Hearts moved above Motherwell and into third place in the Clydesdale Bank Premier League.
Hearts claimed the lead after 51 seconds when Scott Robinson forced a corner and Ian Black's set-piece found Zaliukas unmarked six yards out in the centre of the goal to head in.
Saints were awarded a penalty and Zaliukas was sent off after 12 minutes when Kenny McLean's delightful ball over the top found McGowan, who was tripped when through on goal by last man Zaliukas.
The Saints striker netted before gesturing to the incensed Tynecastle crowd, earning a booking and thus avoiding disciplinary proceedings at the hands of the Scottish Football Association's compliance officer.
The Buddies took the lead when Marc McAusland's cross from the right found Thompson, who beat Adrian Mrowiec to the ball and lofted a header over Marian Kello.
Hearts equalised after the visitors failed to clear a corner, Skacel barging Jeroen Tesselaar off the ball and unleashing a fierce shot from 25 yards to score.
Kello parried a Graham Carey drive from the left edge of the box before Skacel restored Hearts' lead - Jamie Hamill's long throw found Sutton, who laid the ball off and Skacel made space before firing a shot into the bottom corner.
Five minutes later Skacel completed his hat-trick, striking another effort from the edge of the area which beat Craig Samson, before Sutton fired the ball into the roof of the net late on to seal the win.