MONTREAL -- The Montreal Canadiens have Carey Price's name on a new contract.

The 23-year-old goaltender signed a two-year deal on Thursday, ending two months of negotiations between the NHL team and the restricted free agent.

Price has spent his entire career in Montreal after being selected fifth overall in 2005. He'll start the upcoming season as the team's No. 1 goaltender.

"We are extremely happy that Carey has agreed to pursue his career with the Canadiens," GM Pierre Gauthier said in a statement. "Carey is a key member of our club. He has proven that he has what it takes to be a good goaltender in the league, and we are confident he will perform to the best of his abilities for years to come in a Canadiens uniform."

Price split the goaltending duties last season with Jaroslav Halak, who was dealt to St. Louis earlier in the summer.

He compiled a record of 13-20-5 in 41 games. Halak took over the starting job late in the season and helped the Habs reach the Eastern Conference final.