Dunfermline dumped Dundee out of the Scottish League Cup with a 3-1 win at East End Park to book their place in Thursday's third-round draw.
In-form striker Faissal El Bakhtaoui scored in 11 minutes for the Pars but Kane Hemmings equalised early in the second half. Joe Cardle restored Dunfermline's lead with just four minutes left and El Bakhtaoui added a third in stoppage time.
Ross County eased past Ayr United with a 2-0 victory at the Global Energy Stadium thanks to goals early in each half from Liam Boyce and Michael Gardyne.
Kilmarnock saw off Berwick Rangers 4-1 at Rugby Park thanks to goals from Kris Boyd (penalty), Rory McKenzie, Craig Slater and Kallum Higginbotham. Darren Lavery netted for Berwick Rangers.
A first-half goal from Peter Grant gave Peter Houston's Falkirk a 1-0 win over Partick Thistle at Firhill to leave the Jags without a win this season.
Ross Forbes got the only goal midway through the second half as Morton defeated Championship rivals Queen of the South 1-0 at Palmerston.
Kyle Benedictus scored a late winner as Raith Rovers defeated Hamilton Accies 2-1 at Stark's Park after Iain Davidson's opener was cancelled out by Christian Nade.
Livingston claimed a 3-2 victory over St Mirren in Paisley. Liam Buchanan, Danny Mullen - who was sent off in stoppage time - and Declan Gallagher scored for Livi, with Calum Gallagher and Stephen Mallan netting for Saints.
Hearts overcame Forfar 2-1 after extra time at Station Park, with Callum Paterson grabbing the winner for Robbie Neilson's men. Kevin McHattie gave Hearts the lead but Michael Dunlop levelled with six minutes left. Danny Denholm and Kevin Nicoll saw red as Forfar finished with nine men.
Motherwell survived a big scare against East Fife at Bayview to progress 3-1 after extra time. Nathan Austin gave Gary Naysmith's men the lead but Louis Moult equalised with 10 minutes remaining. Scott McDonald and Lionel Ainsworth won it for Well in the extra half hour.