THE win over Queen of the South was Gary Locke's last game in charge of Cowdenbeath.
After the game the manager said goodbye to the players as he prepared to take up a new position with Hearts.
He is to become their Ambassador, replacing former striker John Robertson, who has taken on the manager's role at Inverness Caley Thistle.
But immediately after the game the Cowden board moved to replace him with assistant Billy Brown. 
Director David Allan said: "The club is very grateful to Gary for all his hard work during his time at Central Park and for the massive contribution he made in enabling us to win the end of season play-off game and maintain our SPFL status.
"Gary will always be welcome at Central Park and we wish him and his family all the best for the future".
He added: "Cowdenbeath FC is pleased to announce that Billy Brown will take over as manager with immediate effect. Billy worked closely with Gary last season and brings an invaluable wealth of experience to the role.
"Under his leadership, our aim remains unchanged, and that is to seek promotion from Division 2 in the coming season".
Chairman Donald Findlay said: “Of course I am sorry to see Gary leave. 
"However, in his time at Central Park we have become friends and I always made it plain to him that I would not stand in his way if the opportunity came along to join a bigger Club and I am well aware of his affection for Hearts who have acted with absolute propriety in this matter, as I would expect. 
"I will always be grateful for what he and Billy Brown did for the club at the end of the Season and I have every confidence that Billy will carry on the good work. 
"He is a vastly experienced manager and coach and one of the game’s gentlemen. I very much look forward to working with him and I am confident that all supporters will get behind Billy and the team in the season ahead”.
Billy Brown has a wealth of experience as a manager and coach in the senior Scottish game and will seek to strengthen the Blue Brazil squad by signing at least three or four experienced players to help the young players the club has.
He will have his first game in charge in a closed doors fixture with near neighbours Dunfermline Athletic at Central Park on Friday night.