Dunfermline Athletic and Dundee both recorded two-goal wins to reach the last 16 of the League Cup.
A Myles Hippolyte double and a goal by James Vincent helped the Championship side recover from Peter MacDonald's early goal for Stirling Albion.
They won Group D with maximum points, while Premiership Dundee finished as one of the four best runners up thanks to a 2-0 win over Brechin City.
Lewis Spence and Paul McGowan were the scorers.
Callum Tapping was ordered off for Brechin in stoppage time for a second bookable offence.
The draw for the last 16 takes place on Sunday following the final group stage game between Heart of Midlothian and Inverness Caledonian Thistle.
Those ties will be played on Saturday, 18 and Sunday, 19 August.
- Kilmarnock & St Mirren both go through
- Motherwell fight back to beat Clyde & win group
- Livingston ease though, but Hamilton are out
- Ayr through as Partick face anxious wait
- County beat Alloa to qualify, as Dundee Utd earn consolation win
- St Johnstone edge out Forfar to win group