The Detroit Red Wings have agreed to terms with goaltender Jonas Gustavsson on a two-year contract.

The 27-year-old Swede has spent his entire three-year career with the Toronto Maple Leafs, where he went 39-45-15 with a 2.98 goals against average and a .900 save percentage.

Last season, Gustavsson was 17-17-4 and had a 2.92 GAA and a .902 save percentage.

Gustavsson and Jimmy Howard, who started 57 games last season, will form the Wings' goalie tandem.