Mostafa Awwad, a Navy civilian engineer who worked at a Virginia shipyard, has earned himself 11 years in the clink for giving the schematics for an under-construction aircraft carrier to a foreign spy.

Well, who he thought was a foreign spy. The Egyptian intelligence officer Awwad was trying to sell state secrets to was actually an undercover FBI agent. Though he originally faced a lifetime sentence in prison for his crime, Awwad’s plea agreement lowered his time to 11 years.

Awwad came to the United States in 2007 and obtained citizenship in 2012. In late 2013, he was hired by Norfolk Naval Shipyard as a civilian engineer, but it wasn’t long before Awwad was contacted by an FBI agent posing as an Egyptian looking for information.

According to court records, Awwad downloaded the schematics of the USS Gerald R. Ford, the first of the Navy’s newest generation of aircraft carriers, onto a USB drive. He sent those schematics to FBI agent with the intent of leaking classified information to Egypt. Awwad was arrested in December 2014.