President Trump on Monday signed a limited trade agreement with Japan, a deal that he said would help America’s farmers and ranchers.

The new deal, he said, was “a tremendous victory for both of our nations. It will create countless jobs, expand investment and commerce, reduce our trade deficit substantially, promote fairness and reciprocity, and unlock vast opportunities for growth.”

US farmers have been operating at a disadvantage in Japan since Trump withdrew from the Trans-Pacific Partnership agreement, which had been negotiated by the Obama administration, but which Trump called a terrible deal for the US.

The other 11 Pacific Rim countries, including big farm producers such as New Zealand and Canada, went ahead without the US and were getting preferential treatment in Japan.

While rewarding American farmers, the new US-Japan deal does not resolve differences over trade in autos.

Trump has said the two countries continue to work on a more comprehensive agreement.

Trump has threatened to impose import taxes on foreign autos, claiming they pose a threat to US national security.

At the UN general assembly, Japanese Prime Minister Shinzo Abe told reporters that Trump had assured him that a previous agreement to spare Japan from new auto tariffs still stood.

The pact also includes market-opening commitments on $40 billion worth of digital trade between the two countries.

Trump has long complained by America’s large trade deficit with Japan, which came to $58 billion last year. Japan is the world’s third-biggest economy behind the United States and China.