Facebook says it is shutting down its facial-recognition system and will delete the faceprints of more than 1 billion people amid growing concerns about the technology and its misuse by governments and others.

Facebook introduced facial recognition more than a decade ago but gradually made it easier to opt out of the feature as it faced scrutiny from courts and regulators.

Still, more than a third of Facebook’s daily active users have opted in to have their faces recognized by the social network’s system. That’s about 640 million people.

And while the company says it was trying to weigh the positive use cases for the technology “against growing societal concerns" especially as regulators have yet to provide clear rules, it ultimately decided to end the program.

The announcement follows increased pressure on the company from lawmakers.