WASHINGTON (AP) - Raised voices could be heard through the thick door to the Oval Office as John Kelly - then secretary of Homeland Security - offered some tough talk to President Donald Trump.
Kelly, a whip-cracking retired general who was sworn in as White House chief of staff on Monday, had demanded to speak to the president alone after Trump complained loudly that the U.S. was admitting travelers from countries he viewed as high risk.
Kelly first tried to explain to Trump that the admissions were standard - some people had legitimate reasons to visit the country - but the president insisted that it was making him look bad, according to an administration official familiar with the exchange about a month ago.
Kelly then demanded that other advisers leave the room so he could speak to the president frankly. Trump refused at first, but agreed when Kelly insisted.
It was an early indication that Kelly, a decorated retired Marine general who served three tours in Iraq, is not afraid to stand up to his commander-in-chief.
Tapped to bring order to a chaotic West Wing, Kelly began to make his mark immediately on Monday, ousting newly appointed communications director Anthony Scaramucci and revising a dysfunctional command structure that has bred warring factions. From now on, said White House press secretary Sarah Huckabee Sanders, all senior staffers - including the president's son-in-law Jared Kushner and chief strategist Steve Bannon - will report to Kelly instead of the president.
Kelly "will bring new structure, discipline and strength" to the White House, Sanders said.
"It definitely has the fingerprints of a new sheriff in town," said Blain Rethmeier, who guided Kelly through the Senate confirmation process for the Homeland Security post. Rethmeier said that what stood out about Kelly during the time they worked together was the way Kelly commanded respect from everyone he encountered - and the way he respected others.
Kelly fostered a reputation as an outspoken commander who didn't shy away from unpopular opinions during his military career. Rethmeier said that Kelly also respects authority deeply - "and that's something that Trump sort of smells out, if you respect him or not."
"If he disagrees with you, he'll disagree respectfully," Rethmeier said.
It was a point Kelly made clear during his confirmation hearing in January.
"I have never had a problem speaking truth to power, and I firmly believe that those in power deserve full candor and my honest assessment and recommendations. I also value people that work for me speaking truth to power," he said.
In April, Kelly bluntly challenged members of Congress critical of the Trump administration's aggressive approach to immigration enforcement to either change the laws or "shut up."
But after being confirmed as part of Trump's Cabinet, Kelly also tried to moderate some of the president's hard-line positions, even as he publicly defended them.
Hours after Trump said deportations of people in the U.S. illegally were being carried out as a "military operation," Kelly said the U.S. would not enlist the military to enforce immigration laws.
Kelly and Defense Secretary Jim Mattis, another retired general, were also said to have been deeply frustrated with the rollout of Trump's refugee and immigration ban, and made clear to associates that they were not involved in drafting it or aware of its details around the time that Trump signed the original order. Both moved swiftly to address gaps in the measure, with Mattis asking that Iraqis who helped U.S. troops be exempt and Kelly clarifying that green-card holders would not be affected.
Nonetheless, Kelly launched a particularly robust defense of the order to lawmakers and reporters, which was welcomed by the White House.
Mattis and Kelly also agreed in the earliest weeks of Trump's presidency that one of them should remain in the United States at all times to keep tabs on the orders rapidly emerging from the White House, according to a person familiar with the discussions. The official insisted on anonymity in order to discuss the administration's internal dynamics.
Kelly's appointment is being celebrated beyond the White House.
Sen. Bob Corker, R-Tenn, said Monday that he discussed Kelly's appointment with Trump on Friday and hopes Kelly "will do everything possible to bring the appropriate discipline and focus that needs to be at the White House there."
"I hope that Gen. Kelly will absolutely, forcefully clean the place up," Corker said. "And anybody who's been a violator, who's been a part of public backbiting, part of undermining, who's been part of feathering their own nest at other people's expense, I hope they'll all be gone."
David B. Cohen, a University of Akron political science professor who is co-authoring a book on chiefs of staff, applauded Kelly for doing "things that should have been done on Day One of Reince Priebus's tenure." He said Scaramucci's removal sent a clear message "that going off-script and being undisciplined" would no longer be tolerated at the White House.
But Cohen wondered how long Trump would go before beginning to undermine Kelly.
"None of this works if the president doesn't buy into this 100 percent," he said. "President Trump is his own worst enemy. He instinctively likes to be his own chief of staff and he's a pretty awful one. Will he be able to resist messing with the system once John Kelly cleans everything up? Will he listen to his chief of staff when Kelly has to tell Trump, 'No?'" he asked.
"I'm not sure President Trump is wired to be able to listen to that type of criticism," he said.