Energy Secretary Rick Perry said he doesn’t believe carbon dioxide is a driver of climate change, a view that puts him at odds with scientific consensus but in agreement with another Trump cabinet member.

“No, most likely the primary control knob is the ocean waters and this environment that we live in,” Perry, the former governor of Texas, told CNBC’s “Squawk Box” on Monday.

“The fact is this shouldn’t be a debate about, ‘Is the climate changing, is man having an effect on it?’ Yeah, we are. The question should be just how much, and what are the policy changes that we need to make to effect that?” ​said Perry, who heads up an agency he once said he would like to see abolished​ along with the commerce and education departments.

Environmental Protection Agency ​Administrator Scott Pruitt, in an interview on CNBC in March, also dismissed carbon dioxide emissions as a factor in global warming.

“I think that measuring with precision human activity on the climate is something very challenging to do and there’s tremendous disagreement about the degree of impact,” Pruitt said. “So no, I would not agree that it’s a primary contributor to the global warming that we see.”

The EPA’s web page used to link carbon dioxide, “a primary greenhouse gas,” with global warming until the statement​ was removed from the site in April.

​An overwhelming majority of scientists, including NASA and the National Oceanic and Atmospheric Administration, concluded that carbon dioxide is major cause.

But Perry said ​being skeptical about climate change is “quite all right.”

“This idea that science is just absolutely settled and if you don’t believe it’s settled then somehow you’re another neanderthal, that is so inappropriate from my perspective,​”​ he said.​

​President Trump, who has called global warming a “hoax,” announced that the US would be withdrawing from the Paris ​climate accord in a White House ceremony on June 1.

The deal, brokered by former President Obama, lays out a global strategy for trying to reduce rising temperatures. It has been signed on to by 195 nations.