WASHINGTON (AP)  Indonesia”s leader looked to cement his nation”s growing ties with the United States, declaring after a meeting Monday with President Barack Obama that Southeast Asia”s largest economy intended to join a sweeping U.S.-backed Pacific Rim trade deal.

Indonesian President Joko Widodo is making his first Washington visit since winning power a year ago, and is keen to drum up American investment in a flagging economy. U.S. companies complain that economic protectionism makes it difficult to do business there.

“Indonesia intends to join the TPP,” Widodo said in the Oval Office, referring to the Trans-Pacific Partnership. He provided no other details, but described the Indonesian economy as open.

Obama said Widodo was leading Indonesia in the “right direction.”

“We want to be a partner with you,” he said.

Indonesia had previously expressed interest in joining TPP but this is the strongest indication yet that it is serious about joining the pact, which the U.S. has negotiated with 11 other nations. Once the pact is ratified and takes effect  a process that could take a couple of years  it would cut tariffs and streamline trade rules among nations that account for 40 percent of global GDP.

It could prove a tough sell in Indonesia, where Widodo faces stiff opposition to liberalizing the economy. According the World Bank”s 2015 Ease of Doing Business rankings, Indonesia was 172nd out of 189 economies in the area of contract enforcement.

Speaking at a separate forum Monday, U.S. Trade Representative Michael Froman said the U.S. has had “serious concerns” about investment barriers in Indonesia. He did not specifically address the prospect of Indonesia joining TPP, but said “countries who are able and willing to meet its standards, can potentially accede.”

Obama and Widodo also discussed climate change and counterterrorism against groups like the Islamic State. Indonesia is the world”s largest Muslim-majority nation and largely moderate.

Another agenda item was maritime security cooperation, Obama said, alluding to tensions in the South China Sea, where U.S. officials say a Navy ship is about to sail in what China considers its territorial waters around the disputed Spratly Islands. China has built artificial islands in the area to bolster its sovereignty claim.

In a joint statement, the two presidents called for all parties to refrain from actions that raise tensions, but did not mention China by name. They affirmed the importance of freedom of navigation and overflight.

Indonesia balances its relations between the U.S. and China  which is an even more important source of trade and investment than America. Indonesia is not a claimant in the South China Sea but is concerned about China”s expansive maritime claims that may infringe on the territorial waters of the Natuna Islands, which are part of the Indonesian archipelago.

Widodo has put little focus on foreign relations since he won election last year on a wave of popular support. His visit, which began Sunday, is a chance to build a rapport with Obama, who spent part of his childhood in Indonesia.

But the Indonesian leader was being shadowed by events at home: raging forest fires that have spread a thick, smoky haze over Indonesia as well as Malaysia, Singapore and Thailand.

Officials said Widodo would be cutting short his U.S. visit to deal with the forest fire crisis. His schedule in Washington will go ahead as planned, but he”ll skip a stop in San Francisco and will fly home on Tuesday afternoon.

Indonesia is a leading source of greenhouse gas emissions, and the White House meeting came ahead of a global climate change summit.

Obama said he and Widodo had discussed “why it”s so important that large countries like ours work together to arrive at the strongest possible set of targets and international agreements before we arrive in Paris in just over a month.”

Widodo said they had agreed to work together on the issue “for the sake of future generations.”

Researchers estimate that since September, emissions from Indonesia”s rampant land and forest fires exceeded the average daily emissions from all U.S. economic activity. That”s because many of the fires are on peat lands that are extremely rich in carbon.