St Johnstone have moved to fend off interest in Jason Kerr by tying the defender down on a new three-and-a-half-year deal.
English League One side Barnsley were unsuccessful with a reported £100,000 offer for the 21-year-old earlier this week.
Now Saints boss Tommy Wright is looking forward to working with the former Scotland Under-21 cap for the foreseeable future after securing his services until May 2022.
Wright has also reshuffled his central defence by completing a loan swap deal with Partick Thistle that sees record appearance-holder Steven Anderson move to Maryhill for the rest of the season while Niall Keown takes his place in Perth.
Kerr made his Saints first-team breakthrough 12 months ago with a debut in the William Scottish Cup victory over Albion Rovers.
Before that the highly-rated centre-back had spent six months on loan at Queen of the South having previously helped East Fife lift the Ladbrokes League Two title back in 2015/16.
Kerr has been an ever-present fixture in Wright's squad this season having already registered 28 appearances while contributing three goals.
Wright told the official Saints website: "I'm really pleased. It's something we've been working on for a while now and we're delighted to see Jason sign an extension because he's done incredibly well for us this season.
"It's just over a year since he came back from Queen of the South and he's grown and matured as a player over the past 12 months.
"From speaking to him I always knew he wanted to stay here and the club had no intentions of selling him.
"Jason knows that he can still improve and he sees the best way to do that as being here at the club playing regular first-team football."
Wright added: "The whole idea of sending Jason out on loan was to get him competitive football and he's played a lot of games during his loan spells at Queen of the South and before that East Fife.
"Since he came back here and broke into the first team his all-round game has improved significantly.
"He's improved in the air and also with the ball at his feet. His positional sense and strength has also improved over the past year.
"I've seen a massive improvement in him but there's still aspects of his game he can work on if he wants to get to the very top and I believe he can do just that."
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here