Former CIA Director Michael Hayden said that if Donald Trump takes over as president, the military may flat-out refuse to follow orders from Trump.

Those orders are based on certain campaign pledges Trump has made during his campaign tours, Hayden said Friday on HBO’s Real Time with Bill Maher. Hayden ran the CIA from 1999 to 2005.

Specifically, Hayden pointed to Trump’s pledges to bring back waterboarding and to implement collective punishment, namely by killing family members of Islamic State terrorists. Some commentators have suggested that targeting family members of terrorists is currently forbidden by the Geneva Convention.

Trump insisted to an audience in South Carolina that “torture works.” He has also said that he plans to introduce interrogation techniques that are far worse than waterboarding.

“Let me give you a punchline: If he were to order that once in government, the American armed forces would refuse to act,” Hayden said in response to a question from Bill Maher on Trump’s proposal of collective punishment.

“You cannot—you are not committed, you are not required, in fact you’re required to not follow an unlawful order,” Hayden added. “That would be in violation of all the international laws of armed conflict.”