Portsmouth goalkeeper Craig MacGillivray has extended his contract until the summer of 2021.
The 26-year-old, who joined Portsmouth from Shrewsbury last year, has played 30 times and kept 11 clean sheets this season.
The Fratton Park club are four points clear of Luton at the summit of Sky Bet League One.
"I'm obviously delighted to have signed a new contract and committed my future to the club," said MacGillivray.
Manager Kenny Jackett added: "It's still very early in his Pompey career, but we wanted to reward him and give him a longer-term deal.
"He's been a very good addition to our squad and I'm sure he will continue to prove that in the years to come."
ga('create', 'UA-72310761-1', 'auto', {'name': 'pacontentapi'});
ga('pacontentapi.set', 'referrer', location.origin);
ga('pacontentapi.set', 'dimension1', 'By Press Association Sport Staff');
ga('pacontentapi.set', 'dimension2', 'e1e9eded-6568-45b3-9cd5-f73e8d3a7f7d');
ga('pacontentapi.set', 'dimension3', 'paservice:sport,paservice:sport:club-news,paservice:sport:football,paservice:sport:uk');
ga('pacontentapi.set', 'dimension6', 'story');
ga('pacontentapi.set', 'dimension7', 'composite');
ga('pacontentapi.set', 'dimension8', null);
ga('pacontentapi.set', 'dimension9', 'sport:football');
ga('pacontentapi.send', 'pageview', { 'location': location.href, 'page': (location.pathname + location.search + location.hash), 'title': 'Pompey goalkeeper Craig MacGillivray signs new deal'});