Canada and the U.S. have reached a new North American Free Trade Agreement, NAFTA deal.

The new deal, which will be now called the United States, Mexico, Canada Agreement (USMCA), comes after more than a year of negotiating a new NAFTA.

Canada’s Foreign Affairs Minister Chrystia Freeland and United States Trade Representative Robert Lighthizer released a joint statement Sunday night announcing the new deal.

The deal came down to the wire before a midnight deadline Sunday set by U.S. Congress, with Prime Minister Justin Trudeau convening a cabinet meeting Sunday in Ottawa.

“It’s a good day for Canada,” Trudeau told reporters after the cabinet meeting to discuss the deal, which triggered a jump in global financial markets.

The NAFTA negotiations have been ongoing since August 16, 2017.

The goal was to “modernize” the trade pact, with U.S., Mexican and Canadian.

Officials initially expected to wrap up negotiations in early 2018 due to elections later in the year.