St Johnstone have announced veteran midfielder Craig Bryson has signed a one-year extension on his McDiarmid Park deal.
The former Scotland cap will stay in Perth until at least the summer of 2022 in a surprise move on the eve of the double-chasing club's Scottish Cup semi-final.
St Johnstone take on St Mirren at Hampden on Sunday and Callum Davidson's men stand two games away from a historic achievement having already won the Betfred Cup earlier this year.
34-year-old Bryson's experience since joining from Aberdeen in the summer has been invaluable and he told the Saints' website: "I'm really pleased to have got my new contract and extended my stay. I'm very settled here and enjoying my football.
"The team has been doing very well and it was great to hear that the manager and the board wanted me to stay.
"The club has made me feel very welcome from day one and the dressing-room has a brilliant team spirit.
"I look forward to next season but, before that, we have at least three massive games to play in the next week.
"It starts against St Mirren tomorrow and if we can win then we have another massive match in a Scottish Cup Final on May 22.

"But we are not looking that far ahead. It's all about being professional tomorrow and trying our best to beat a very good St Mirren side.
"We also have fifth place in the Premiership to fight for. It's going to be an exciting and challenging period. But we are all ready for it."