Dundee keeper Scott Bain has signed a four-year deal with Celtic.
The 26-year-old has been on loan at Parkhead since the end of the January transfer window with Hoops boss Brendan Rodgers now snapping him up on a permanent deal until 2022.
Earlier this season, Bain found himself frozen out at Dens following an alleged bust-up with Dark Blues manager Neil McCann.
The goalie was then loaned to Hibs at the start of this year but moved again a few weeks later to Celtic in a complicated three-way move involving Simon Murray and Scott Allan.
Bain went on to make his debut for the Hoops in the Old Firm derby at Ibrox in March and has now made another five starting appearances for the Glasgow side.
The keeper said after signing his new deal: “I’m delighted. It’s more than I obviously expected when I first came in. I’m over the moon.
“I don’t think it could have gone any better. It’s funny, there’s a lot of little things that went my way to get to Celtic on loan and then to play the game against Rangers, which sent me on my way to this four-year deal. It’s been great and I’ve loved every minute of it.”
With Bain out of contract at the end of this season, Dundee are not entitled to any fee for the player, who was originally signed for the Dark Blues by former boss Paul Hartley from part-time Alloa in May, 2014.