Rangers have suffered a 2-1 defeat at St Johnstone and remain seven points behind Scottish Premiership leaders Celtic.
The victory moves the hosts up to fifth - three points behind third placed Aberdeen.
Robert McElroy reports
Advertisement
10-man Hearts scored an 89th minute penalty to beat Motherwell 3-2 and climb up to fourth.
Their opponents remain ninth - four points clear of the relegation places.