Motherwell have confirmed defender Ricki Lamie has signed a new two-year contract at Fir Park.
The 28-year-old centre-back had signed a pre-contract agreement with Dundee, subject to whether or not they secured Premiership safety.
However, the Dark Blues were relegated to the Championship and Lamie activated a clause that has allowed him to pull out of a move to the City of Discovery and stay in Lanarkshire.