Motherwell survive Livingston's fightback from 3-0 down in a crazy Scottish Premiership game featuring three first-half penalties, two of them missed inside a minute.
Hibernian midfielder Marvin Bartley rejected offers from English clubs to stay in Scotland with Livingston.
Marvin Bartley will bring "much-needed experience" to Livingston after agreeing a pre-contract move from Hibernian, says boss Gary Holt.
Kenny Miller scores the only goal as relegated Dundee end a run of 10 defeats with victory at Livingston.
Audio & Video
Motherwell end the Scottish Premiership season with a home victory against Livingston (UK users only).
How does the Scottish Premiership table now compare to this stage last season and how much can it tell us about how the season might finish?
What moves might happen? Which have already been completed? And test your transfer window knowledge as it prepares to shut in Scotland at midnight on Friday.