President Donald Trump harshly criticized former CIA director John Brennan in a series of tweets quoting a guest on “Fox & Friends” just hours before he swore in the agency’s new director.

Over the course of three tweets Monday, Trump quoted a lengthy criticism of Brennan from Dan Bongino, a former Secret Service agent and congressional candidate, that aired on Fox News that morning.

While he was at the CIA, Brennan largely avoided the spotlight, but in recent months he’s become an outspoken critic of Trump, often lambasting his decisions and character on Twitter. In response to news that Trump had referred to Haiti, El Salvador and African countries “shitholes,” Brennan argued the president “continues to demonstrate daily that he is a deeply flawed person.”

In interviews (Brennan is an MSNBC commentator) he has suggested that Trump has made glowing statements about President Vladimir Putin because the Russian government “may have something on [Trump] personally.” He has also said that he thinks Trump is “dishonest. He lacks integrity. He has very questionable ethics and morality.”

And on Sunday, after Trump demanded that the Department of Justice investigate “whether or not the FBI/DOJ infiltrated or surveilled the Trump Campaign for Political Purposes,” Brennan again weighed in on Twitter:

Trump’s tweets came just hours before Trump attended the swearing-in ceremony for Gina Haspel, the first woman to lead the CIA.

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.