President Trump has listed his decision last June to withdraw from the Paris Agreement on climate change high among his first-year accomplishments, describing the deal as “totally disastrous, job killing, wealth knocking out” at the Conservative Political Action Conference on Friday.

But Trump might shift gears when the politics behind it change and has suggested to foreign counterparts that he would be open to keeping the U.S. in the agreement under the right terms, a former White House aide told TIME this week.

“The president talks about it when he’s in meetings with foreign leaders overseas,” says George David Banks, a former White House energy and environment adviser. “It’s not scripted. He’s not using talking points prepared by staff. He says it because it’s what he believes. He’s interested because he likes the idea of working out a better deal.”