A Turkish man, identified with initials S.A,. was detained at Turkey’s Ipsala border gate after custom officials noticed his passport was among thousands of others which the government revoked in the aftermath of the July 15, 2016 coup attempt.

State-run Anadolu news agency reported on Friday that the government earlier cancelled S.A.’s passport for allegedly being lost. When S.A. tried to exit to Greece, the passport did not go through and he was detained.

Referred to court for arrest, S.A. was put in pre-trial arrest.

Anadolu said S.A. is a user of ByLock, a mobile app that Turkish government claims to the be once-top communication tool among the followers of the Gulen movement which stands accused of masterminding the July 15, 2016 coup attempt.

The movement denies involvement.

According to Republican Peoples’ Party (CHP), Turkish government revoked passports of at least 140,000 people since last summer. Turkey’s pro-government Yeni Safak daily claimed that Interpol has removed Turkey from its database over controversial cancellations. Interpol denied the allegation.

Many tried to escape Turkey via illegal ways as the government cancelled their passports like thousands of others.