Aberdeen have been dealt a tricky draw in the fourth round of the William Hill Scottish Cup.
The Dons will take on Hearts at Tynecastle, while holders Caley Thistle face a trip to either Stirling Albion or Cumbernauld Colts.
Ross County manager Jim McIntyre faces a trip to his former club Dunfermline, while either Formartine United or Cove Rangers will host Scottish Premiership side Motherwell.
Inverurie Locos will also face top flight opposition in Hamilton Accies if they can overcome Annan Athletic in this weekend’s replay.
The ties will be played on the weekend of January 9-10.
William Hill Scottish Cup fourth round draw
St Johnstone v Kilmarnock
Dunfermline v Ross County
Stirling Albion or Cumbernaul Colts v Inverness Caley Thistle
Wick Academy or Linlithgow Rose v Queen’s Park or Forfar
Dundee v Falkirk
Livingston v Greenock Morton
Dumbarton or Alloa v Queen of the South
Stenhousemuir or East Kilbride v Huntly or Lothian Thistle
Motherwell v Formartine United or Cove Rangers
Hearts v Aberdeen
Airdrie v Dundee United
Stranraer v Celtic
Rangers v Cowdenbeath or Arbroath
St Mirren v Partick Thistle
Inverurie Locos or Annan Athletic v Hamilton Accies
Raith Rovers v Hibernian