President Donald Trump has named Joseph Maguire, the current director of the National Counterterrorism Center, as acting national intelligence director.

In a tweet Thursday, the president said Maguire has had a long and distinguished career in the military, retiring from the U.S. Navy in 2010.

“I am pleased to inform you that the Honorable Joseph Maguire, current Director of the National Counterterrorism Center, will be named Acting Director of National Intelligence, effective August 15th. Admiral Maguire has a long and distinguished career in the military, retiring from the U.S. Navy in 2010,” he tweeted.

Trump said Maguire had leadership roles throughout his career, including commander of Naval Special Warfare Command. He has also served as a fellow at Harvard University.

Maguire becomes acting director on Aug. 15, the same day current National Intelligence Director Dan Coats’ resignation takes effect.

Maguire, who is from New York City, retired from the Navy in 2010 as a vice admiral after 36 years in uniform. He has commanded every level of the Naval Special Warfare Command, the Navy component of the U.S. Special Operations Command.

Just earlier, President Trump also announced Deputy Director of National Intelligence Sue Gordon is resigning from her post.

“Sue Gordon is a great professional with a long and distinguished career. I have gotten to know Sue over the past 2 years and have developed great respect for her. Sue has announced she will be leaving on August 15, which coincides with the retirement of Dan Coats,” Trump tweeted.

Sue Gordon spent more than 25 years in the CIA before becoming second-in-command at the Office of the Director of National Intelligence (ODNI).