Gary Locke has finally been given the manager's job at Tynecastle on a permanent basis just 24 hours before he leads Hearts onto the Hampden pitch for the Scottish League Cup final. While other such as ex-Dundee United manager Peter Houston had been interviewed for the job, the club made the announcement today that Locke would continue in the role. Locke has the club in his blood as he made 189 appearances for Hearts as a player and helped lift the Scottish Cup in 1998 as club captain, despite missing the final win over Rangers through injury.The club released a statement which said: "After considering all shortlisted candidates the board of the club has decided to hand the management role to Gary on a deal until the end of next season, while Edgaras Jankauskas and Darren Murray will continue to assist."Locke has steered the club over three SPL games where they picked up four points after stepping up from his role as first-team coach when John McGlynn lost his job following four consecutive defeats. Hearts director Sergejus Fedotovas said: "We considered several people for the job and were close to making an appointment of what we believed to be the best of outside candidates, but it was Gary Locke who scored more points among the board members and now I believe that it is right that Gary, Edgaras and Darren continue to be given an opportunity to build on the work they have begun. Gary clearly has the same desire as a coach that he showed as a player for the club and with the support of Edgaras, Darren and the players he has an opportunity to deliver success to the club. Our decision provides certainty to everyone through to the end of next season and reinforces the focus we all have in trying to achieve a special chapter in the history of this club on Sunday.''