MASSENA, N.Y. (AP) — Alcoa has reached a deal with the New York Power Authority to continue providing low-cost hydroelectric power for the company’s aluminum smelting plant in northern New York.

U.S. Sen. Charles Schumer and Gov. Andrew Cuomo announced Thursday that the seven-year agreement will secure the jobs of 450 workers at the smelting operations in Massena, on the St. Lawrence River 165 miles (265 kilometers) northwest of Albany.

Schumer and Cuomo, a fellow Democrat, worked with the company to reach a $30 million low-cost power deal in November 2015 after Pittsburgh-based Alcoa announced it planned to close the plant. That agreement was scheduled to expire at the end of the month.

Cuomo said at the Massena plant that the deal also protects 145 jobs at Arconic, an Alcoa spin-off company located at the same facility.