TORONTO - Goaltender James Reimer and the Toronto Maple Leafs have avoided arbitration with a new two-year contract.

The Leafs confirmed the deal in a release Friday.

Reimer, a restricted free agent, and the Leafs were scheduled to go to arbitration on Monday.

Reimer lost the starting job in Toronto to Jonathan Bernier last season, but was forced into service with Toronto's playoff hopes on the line when Bernier suffered a knee injury that ended his season.

The Leafs ended up crashing out of playoff contention, with Reimer shouldering much of the blame. He also seemed to lose the confidence of Leafs coach Randy Carlyle.

When asked about Reimer's performance following a 3-2 loss to the Detroit Red Wings, Carlyle answered: "I thought he was OK, just OK."