The Toronto Maple Leafs and goaltender James Reimer agreed to a two-year contract, the team announced Friday.

No financial terms were disclosed, but Hockey Night in Canada reported the contract has an average annual value of $2.3 million.

Reimer, a restricted free agent, and the Maple Leafs had a salary arbitration hearing scheduled on Monday.

Reimer, 26, went 12-16-1 with a 3.29 goals-against average and .911 save percentage in 36 games with the Maple Leafs in 2013-14, but finished the season by losing eight of his final nine decisions.

Reimer was taken by Toronto in the fourth round (No. 99) of the 2006 draft and has a career record of 65-48-15, with a 2.85 goals-against average, .914 save percentage and 11 shutouts in 140 games.

Reimer's best season came in 2012-13, when he was 19-8-5 with a 2.46 goals-against average and .924 save percentage, leading the Maple Leafs to their first appearance in the Stanley Cup playoffs since 2004.