Inverness Caledonian Thistle have confirmed Dunfermline striker Craig Brewster as their new player-manager.
Craig Brewster was an unexpected choice
The 37-year-old has signed a two-and-a-half-year deal and will bring Rangers youth coach Malcolm Thomson to Caledonian Stadium as his assistant.
Inverness director of football Graeme Bennett said: "He is a hungry young manager who can still play too."
Brewster said: "I had decided that I would go into management, but I did not realise it would come this quickly."
He succeeds John Robertson, who was appointed head coach of Hearts last month.
"It was an honour to have my name linked with the job, so to have got it in the end is even better," Brewster said.
He will take charge of Caley Thistle for Saturday's meeting with former club Hibernian but will be unable to field himself until January because of the Fifa transfer window.
"I think before a ball was kicked everybody expected Inverness to be relegated, but they have already shown there is great spirit within the squad," said Brewster.
"It is a tough job and every game is a massive one, but the guys have done brilliantly and Charlie Christie and John Docherty have maintained that spirit since John left."
Dunfermline and Caley Thistle finally reached agreement on a compensation package on Thursday morning.
Brewster had agreed terms at Caledonian Stadium, but Dunfermline chairman John Yorkston demanded compensation as Inverness would be gaining both a manager and a player.
Yorkston told BBC Sport that he had been prepared to compromise as Brewster had been such a great servant to Dunfermline and he did not wish to stand in the way of the veteran's desire to embark on a coaching career.
Brewster, who started his career at Forfar Athletic, helped Dunfermline reach the Scottish Cup final and into fourth place in the Scottish Premier League last season.
He had joined the Pars in 2002 after a season with Hibernian.
Brewster, who also had a spell with Raith Rovers, scored the winning goal for Dundee United in the 1994 Scottish Cup final against Rangers before moving to Greece for a five-year stint with Ionikos.
His assistant at Caley Thistle, Thomson, had been part of the backroom team at Hibernian before moving to Rangers with Alex McLeish.
Brewster became the Inverness target after former Scotland manager Craig Brown and Motherwell assistant Maurice Malpas dropped their interest in the job.
Former Everton and Rangers defender Richard Gough and former Inverness and Aberdeen boss Steve Paterson had also been linked with the vacancy.
Alan Kernaghan, who has just been sacked as Livingston assistant, had rejected the opportunity to talk to Caley Thistle.