We will publish the highlights of tonight's two Premiership games at midnight. If you can stay up, you'll see some cracking goals, but if it's now time for your beddy-baw-baws then watching them can be your Wednesday morning treat while you munch your toast and marmalade. Thanks very much for joining us once again here at BBC Scotland. We'll be back for more tomorrow night, when Inverness travel to Dundee in desperate need of a win, Rangers host Aberdeen and St Johnstone welcome Hearts. All the best.
- FT: Ross County 3-2 Hamilton (Gardyne, Matthews og, Franks; Bingham, Templeton)
- Hamilton & Inverness will occupy bottom two places
- FT: Motherwell 3-1 Kilmarnock (McHugh, Ainsworth, Frear; Frizzell)
- Motherwell & Dundee safe from relegation
- FT: Dundee United 2-2 Falkirk (Murray, Spittal; Craigen, McKee) Premiership play-off semi-final first leg
Hamilton boss Martin Canning is bemoaning Accies' misfortune after a heart-breaking last-ditch defeat at Ross County which condemns them to a relegation play-off at best, and gives bottom side Inverness faint hope of overhauling them.
"It seems to to be the way things have been going," Canning told BBC Scotland. "I can't believe we have lost that game. We have hit the post, had numerous other opportunities and their second goal has come off the back of our keeper and gone in. That is when you know your luck is out.
"The amount of bad luck we have got tonight is scary. I couldn't ask more of the players. I asked them to be brave and it was one of our best performances of the season. How we have managed to lose that game, I don't know."
Kilmarnock interim manager Lee McCulloch: "Two set-plays cost us, and a breakaway goal. Overall it's disappointing to lose but the manner of the goals was even more disappointing. I'm delighted with the first half, we were by far the better team, but in the second half you could probably argue that Motherwell deserved it with the way they pressed and hit us on the counter-attack."
Motherwell boss Stephen Robinson admits it is a a feeling of "relief, more than mass celebration" after ensuring Premiership safety.
"We have not given the fans a super season, so there is nothing to celebrate," he tells BBC Radio Scotland. "But we have managed to stay up with back-to-back victories and we are delighted with that.
"The young boy [David Ferguson] had a hard night against Jordan Jones who is an excellent footballer I know well, and in the end we put Chris Cadden against him and I thought he was absolutely outstanding. Lionel [Ainsworth] came on and scored a great goal but Chris is the boy who won us the match."
Ross County manager Jim McIntyre: "It was a very open game. We started the game brilliantly, scored a fantastic goal through Michael Gardyne, but Hamilton came right back into it. It was one of those nights with plenty of mistakes and lots of goalmouth action. We've had our pockets picked here before in Dingwall with late goals. I feel we picked theirs tonight. I feel for Hamilton tonight but it's all about our team doing what we can do, trying to get into that fight for seventh. We know that we have the quality that can hurt sides but the doggedness wasn't quite there tonight and that is the side that we need to improve for Saturday. I thought Hamilton's players gave their manager everything. I wish them well for their fight to stay up."
Falkirk scorer James Craigen: "It was end to end, a really high tempo, but it is a good draw to take back to the Falkirk Stadium. We will give it a good go on Friday night. It will be a tough game but we are confident. (For the goal) I felt I had made good contact with the ball. All you want to do is make good contact and fingers crossed it goes in."
Former Scotland striker on BBC Sportsound
"Both teams put everything into the match. With only three days' recovery, when you look at the changes Falkirk were able to make, come the last 20 minutes of this game on Friday night Peter Houston will have the luxury of bringing on fresh, fast, energetic players."
Dundee United manager Ray McKinnon: "I enjoyed the game. It was interesting. Credit to my team, on the back of two games last week they have come out and given everything tonight. The game is still in the balance for Friday. Blair Spittal is doing great and Simon Murray is always a threat. We can go down there and win and we will go with a really positive mentality. We would like to have taken a win down there but it makes it very interesting now. It will be an open game because both teams want to win it. Stewart Murdoch, who has done fantastic at right-back since he came in to the team, I think has done his sartorius muscle (thigh strain). He was feeling it slightly prior to the game but he wanted to play, but he's gone and done, which is a real blow to us."
The Motherwell players parade round the Fir Park pitch engaging in a bit of mutual applause with their fans. They put in quite a shift for the club tonight...as did the players.
Falkirk manager Peter Houston: "It was a terrific game, both teams had a go. We showed great character. Tinkering with our system worked because it spooked them a bit. I thought for 10 minutes of the first half we lost it but for the rest of the game we more or less dominated. I was delighted with our performance. If we'd got in front, we'd have made it more difficult. We had the bottle to come back from it twice. I'd like to have seen it the opposite. We look forward to Friday night now. We are more than confident that we can make the final of the play-off again.
"Joe (McKee) has been unlucky with injuries since he came (to us). He's a delightful player with the ball. He has great composure and has a great shot on him."
With Dundee safe, will they have the same appetite for tomorrow night's match as Inverness who, you can be sure, will be fired up by manager Richie Foran for the game at Dens? Caley Thistle really need a win, because a draw would leave them three points adrift of 11th-placed Accies and with a goal difference seven worse than the Lanarkshire men.
Motherwell's win and Hamilton's desperately unlucky defeat away to Ross County not only means Stephen Robinson's men are safe; it also ensures that Dundee are safe from the relegation play-offs. Either Inverness or Hamilton will be relegated automatically.
BBC Sport Scotland at Tannadice
A scintillating football match and it really whets the appetite for what awaits us on Friday night in Falkirk!
I've got a feeling Bairns boss Peter Houston might have something to say about the disallowed goal!
The Steelmen are safe! They have avoided the stress of the play-offs.
Well striker Scott McDonald does a bit of Riverdance-style twinkle toes before knocking the ball off the shins of his opponent to win a throw-in and waste another few seconds.
Stoppage time at Fir Park. The home fans are on their feet, ready to celebrate safety.
A hugely entertaining contest at Tannadice and Dundee United and Falkirk are tied going into the second leg of their Premiership play-off semi-final on Friday.
Who will prevail and face either Hamilton Academical or Inverness Caledonian Thistle in the final?
BBC Sport Scotland at Victoria Park
Hamilton have been so unlucky, they really have.
They've put so much into this. To leave with nothing is so cruel. Thye've simply had no luck.
County deserve real credit though as they were in a real contest tonight and look to have come through it.
It's a play-off or worse for Hamilton now with County looking clear in seventh.
How did Robbie Thomson save that?
The Falkirk goalkeeper was off his line as Thomas Mikkelsen sent a looping header towards goal but somehow Thomson got back to palm away.
Thomas Mikkelsen heads wide at the end of a promising Dundee United move.
Time running out at Tannadice...
There is the late twist and it's a heartbreaker for Hamilton.
The ball drops to the edge of the box and Jonathan Franks guides a marvellous half-volley beyond Remi Matthews and into the net.
If they fail to find a leveller then Accies can not avoid the relegation playoff spot and could still even go down automatically.
Darian Mackinnon does well to twist away from his marker on the edge of the box but his shot is easily gathered by Ross County keeper Scott Fox.
It looks like we're heading for a draw in Dingwall unless we have a late twist.
Louis Moult is afforded a standing ovation by the Claret and Amber faithful as he is subbed, with Ryan Bowman entering the fray.
That could make Motherwell safe. And a lovely goal it was too. Lionel Ainsworth sends Louis Moult away down the left and he looks up, sends in a first-time ball into the area and Elliott Frear collects it in his stride, rounds Killie keeper Jamie MacDonald and slots home his first goal for the club.
Falkirk's John Baird has the ball in the net after beating Cammy Bell with a header but the Bairns substitute's celebrations are cut short by the offside flag.
Motherwell and Dundee will be safe in the Premiership if things stay as they are. Inverness would not be relegated because they could still win their two remaining matches to leapfrog Accies, who desperately need a goal at Ross County to avoid a relegation play-off against Dundee United or Falkirk...at best.
Chance at the other end as Elliott Frear weaves into the Killie area down the right, cuts back inside but steers his left-foot shot just past the far post.
What a response!
Hamilton head straight up the other end of the pitch and David Templeton skips away from a couple of challenges and drills a low shot into the net.
A first goal for Accies for the former Hearts and Rangers man, though the County defence and Scott Fox will probably feel they could have done better.
Adam Frizzell does well to create space for himself on the edge of the Motherwell box but his left-foot volley drifts narrowly over. Killie pressing for an equaliser...
BBC Sport Scotland at Tannadice
It's been a great night for the 7,034-strong crowd at Tannadice - what a brilliant game they've witnessed, with four goals of real quality.
Jim O'Brien is away celebrating in front of the fans but I don't think he'll be credited with that one.
The County man rifles in a low drive from the edge of the box which cannons back off the post, hits off the back of Hamilton keeper Remi Matthews' legs and into the net.
Kilmarnock interim boss Lee McCulloch introduces Callum Roberts for Dean Hawkshaw, and Rory McKenzie for Greg Kiltie, as the visitors try to fashion an equaliser at Fir Park.
BBC Sport Scotland at Victoria Park
This has been a brilliant game of football. Both sides are giving their all and there's been some wonderful football.
Hamilton will wonder how they're not ahead with Scott Fox producing a quite incredible stop when Greg Docherty looked to have a tap-in.
Accies are giving it everything. It's hectic, frenetic, fantastic.
Peter Houston was jumping about celebrating that free-kick by McKee like a kid on Christmas morning. In what other walks of life can adults act like that? How wonderful. It's escapism, this football lark (sometimes).
Hamilton really should be ahead.
The ball is rolled across goal towards Greg Docherty at the back post. He looks certain to tap the ball in from close range but Scott Fox gets down brilliantly to pull off a miraculous save.
With free entry at Victoria Park - a thank you from the chairman - some 4,871 fans have made their way to the stadium tonight.
What a stunning equaliser from Joe McKee.
He stands over a free-kick wide on the left and wallops the ball over the wall and past Cammy Bell.
All square again - what a game at Tannadice.
Kilmarnock defender Greg Taylor slides in on Elliott Frear and look like he gets the ball. But Taylor is booked and Motherwell are awarded a free-kick two yards from the edge of the 18-yard box, 10 yards from the left touchline.
Substitute Lionel Ainsworth steps up and rifles the free-kick right-footed into the far corner. Great strike.