A Turkish court ruled on Tuesday to release U.S. Consulate General employee Nazmi Mete Cantürk from house arrest due to health issues but barred him from leaving the country during his trial.

Cantürk, a security officer at the U.S. Consulate in Istanbul, and his wife and daughter are accused of links to the Gülenist Terror Group (FETÖ), which is responsible for a bloody coup attempt on July 15, 2016.

The 27th Istanbul Heavy Penal Court also ordered to lift judicial control measures on Cantürk’s wife and daughter.

Several employees of U.S. diplomatic mission are currently on trial as Turkey accuses the U.S. of harboring FETÖ, which operates a vast network of charter schools and businesses in the country, and its leader Fetullah Gülen, who has lived in self-imposed exile in Pennsylvania since 1999.