NEWARK, N.J. (AP) The New Jersey Devils have signed defenseman Ben Lovejoy to an $8 million, three-year deal.

General manager Ray Shero announced the deal about an hour into the start of the NHL free agency period.

Lovejoy will count $2.67 million against the salary cap through the 2018-19 season. He'll make $2.5 million next season and in 2017-18 and $2.75 million in the final year of the contract.

More from FoxSports

The 32-year-old Lovejoy won the Stanley Cup with the Pittsburgh Penguins. He played in all 24 playoff games and recorded two goals and four assists.

Lovejoy replenishes New Jersey's blue line after the Devils traded Adam Larsson to the Edmonton Oilers on Wednesday for left wing Taylor Hall. Hall gives the Devils their best scoring threat in years.