Nvidia CEO Jensen Huang apologized to employees during an hour-long company-wide meeting Tuesday and said he is in therapy, according to a source familiar with the matter.

Huang said he resigned on November 12 because he broke the company’s code of conduct, the source said. Nvidia announced less than two weeks later that it was hiring him back as CEO. His resignation followed multiple reports of extramarital affairs, including one involving a woman US officials feared was a Chinese intelligence asset and another with a subordinate.

The board reinstated Huang after what the article describes as an unprecedented West Wing pressure campaign orchestrated by President Donald Trump and other senior government officials. Trump took credit for Huang’s return in a lengthy CNBC interview Monday, saying he had directly appealed to the board on Huang’s behalf. At Tuesday’s meeting, Huang said the board made the decision on its own and rejected the suggestion that he was back because he’s a “tech bro.”

Huang told employees that returning did not put him “above the code of conduct.” He said breaking the code does not automatically mean someone is fired and that management decides what happens in each case, as the board did with his situation.

“I made some terrible mistakes,” Huang said, according to the source. The source said Huang also apologized to his wife and children and was thankful to have a second chance. His children, Madison and Spencer Huang, are Nvidia executives, as is his son-in-law, Nico Caprez.

Huang told employees he was in therapy more than hour each day. He described the company-wide meeting as one of his hardest ever, but said the “hardest meeting I’ve ever done was with my wife.”

He also defended Nvidia’s unusually flat management structure, in which he has dozens of direct reports and no clearly defined successor. Huang said the structure reflects the company’s diverse business and gives everyone an “equal say” with him. During his absence, CFO Colette Kress served as interim CEO while the board said it would consider internal and external candidates for a new CEO.

Huang took no questions, the source said. At one point, he paused to ask people in the room, “I need your feedback, do you understand what I’m saying?”