Connor Smith has agreed a new contract at Hearts.
The 21-year-old has put pen to paper on a deal until the summer of 2023.
The midfielder returns to Tynecastle following a successful loan spell at Queen's Park.
He helped the Spiders gain promotion to the Scottish Championship via the play-offs and featured 38 times.
Sign up to Edinburgh Live newsletters for more headlines straight to your inbox
Speaking to heartsfc.co.uk after penning his new deal, Connor said: "I'm delighted to get this signed.
"I had a really enjoyable time with Queen's Park last season getting the club promoted, and I'm excited to kick on now for Hearts."
Hearts boss Robbie Neilson added: "We're very happy to get Connor tied down.
READ MORE: Hearts learn Europa League play-off fate in August as draw dates and fixture scheduled revealed
"He had a really impressive loan at Queen's Park, being part of a successful team that made it to the Championship.
"Connor's a great prospect and that experience will have been so beneficial to his development.
"It's another piece of the puzzle as we continue building for the new season."