That's all from me, good night.
- Quarter-final draw: Rangers v St Johnstone, Hibernian v Dundee United, Aberdeen v Hamilton Academical, Celtic v Partick Thistle
- Hamilton beat Motherwell on penalties
- Both sides had a man sent off in Lanarkshire derby
- Guidetti, Commons & Eckersley og give Celtic win
- Hearts' Sow missed spot-kick at Celtic Park
- Fojut heads United winner in Dundee derby
- Boyle sent off & Stewart missed penalty for Dundee
Please join us again at the weekend for more Scottish football coverage, with a full card of Premiership fixtures on Saturday and Championship matches on Sunday and Monday.
There will be highlights of Celtic v Hearts on the BBC Sport website later tonight and highlights of Dundee United v Dundee and Hamilton Academical v Motherwell will be available tomorrow.
So, the two remaining Scottish Championship sides have home ties in the quarter-finals. Two all-Premiership ties, including a Glasgow derby between Celtic and Partick Thistle.
The quarter-finals will be played on the 28 and 29 October.
Rangers v St Johnstone
Hibernian v Dundee United
Aberdeen v Hamilton Academical
Celtic v Partick Thistle
These sides enter the quarter-final draw, which will shortly take place at Tanandice:
Aberdeen, Celtic, Dundee United, Hamilton Academical, Hibernian, Partick Thistle, Rangers, St Johnstone.
A dramatic end to the Lanarkshire derby and it is Hamilton who win the shoot-out to go through to the quarter-finals.
Hamilton 6-5 Motherwell (Craig Watson scores)
Hamilton 5-5 Motherwell (Simon Ramsden misses)
Hamilton 5-5 Motherwell (Dougie Imrie scores)
Hamilton 4-5 Motherwell (Josh Law scores)
Hamilton 4-4 Motherwell (Darren Lyon scores)
Hamilton 3-4 Motherwell (Jack Leitch scores)
Hamilton 3-3 Motherwell (Nicky Devlin scores)
Hamilton 2-3 Motherwell (Henrik Ojamaa scores)
Hamilton 2-2 Motherwell (Ali Crawford scores)
Hamilton 1-2 Motherwell (Stephen McManus scores)
Hamilton 1-1 Motherwell (Grant Gillespie scores)
Hamilton 0-1 Motherwell (John Sutton scores)
BBC Scotland at New Douglas Park
"It will need to be penalties to separate the two sides at New Douglas Park."
No goals after 120 minutes. It's going to be penalties.
Louis Longridge's shot for Hamilton takes a deflection to carry it wide of the post in the final chance of the match.
Just a few minutes remaining in extra-time at New Douglas Park. Will there be a winner?
Louis Longridge goes down on the edge of the Motherwell penalty area. There are some shouts for a penalty from the home crowd but play rages on.
John Sutton tries to get on to a through ball from Motherwell defender Stephen McManus but the striker goes too soon and is flagged offside.
Hamilton's Grant Gillespie requires treatment on a head knock. He's soon able to return to the action.
Stuart in Old Kilpatrick: "Would love a Glasgow derby for the Jags in the Quarter final, either Celtic or Rangers at Firhill bring it on."
Michael McGovern collects the ball to take the sting out of a Motherwell attack.
Back underway at New Douglas Park.
Still no goals after 105 minutes. Both sides now down to 10 men. Unless there is a goal in the final quarter-hour, there will be a penalty shoot-out.
Jaroslaw Fojut secured Dundee United's second derby win in four days.
Dundee United manager Jackie McNamara
"Relieved more than anything. It was a frustrating night all round. Delighted with the last-minute goal."
Mark O'Brien receives his second yellow card of the match and now both teams are down to 10 men.
Dundee manager Paul Hartley
"It was an outstanding game of football. I don't think it was a sending off [for Martin Boyle]. We'll look at it and if we need to appeal it, we'll appeal it."
Josh Law hits the crossbar, the ball rebounds to Lionel Ainsworth and he hits the post. Remarkable let-off for Hamilton.
Couple of chances at New Douglas Park. Dougie Imrie has a shot saved for Accies before Jack Leitch shoots just wide at the other end.
Hearts head coach Robbie Neilson
"I thought the game hinged on the penalty miss. We had a lot of good passing, good movement; the boys were confident on the ball.
"I'm pleased with the performance overall but disappointed with the score.
"We've defended really well this season but every goal was avoidable, you can track back and there's some mistake somewhere and we had three bad ones tonight.
"But I'll take it on the chin. I'd rather do it in the League Cup than in the league."
The first period of extra-time has started at New Douglas Park.
A dramatic end to fiercely competitive Dundee derby. Jaroslaw Fojut's late, late header proves to be the difference after Dundee had Martin Boyle sent off and missed a penalty through Greg Stewart.
BBC Scotland at New Douglas Park
"Full-time at New Douglas Park and it's 0-0. Hamilton's 10 men will face a tough shift in extra-time."
Jaroslaw Fojut climbs highest to head home and surely give United victory in the Dundee derby.
No goals in regulation time so there will be an additional half-hour played in the Lanarkshire derby.
Substitute Chris Erskine fires just wide of the Dundee goal. He claims it took a deflection but a goal kick is awarded.
Celtic manager Ronny Deila
"I think we are going in the right direction. I was pleased with two things; we worked as a team, with players winning the ball so we had a lot of the ball and we are starting to create something on the sides.
"Stokesy and Emilio were especially good (on the left) and that is something to build on.
"Celtic has been very good in the centre for several years but we can do better on the sides."
Philip Roberts sends a low ball across the face of the Dundee United box. James McPake arrives but just cannot get the crucial touch to give Dundee the lead.
Closing stages now at New Douglas Park and Tannadice. There's been a red card in each match and a missed penalty in the Dundee derby. Extra-time beckons...
Celtic booked their place in the last eight in tonight's earlier kick-off. Ronny Deila's side go into tonight's draw which follows the remaining two ties.
Sportsound pundit Willie Miller
"He's lost a bit of his impact, Dundee United's Nadir Ciftci. He's going too deep. He's picking it up in the middle of the half rather than in and around the box where there's no doubt he's a threat."
Fraser Kerr's cross is dummied by John Sutton and Iain Vigurs strikes on target. Michael McGovern, though, makes an acrobatic save.
Dundee's Greg Stewart is closed down at Tannadice.