The National Security Agency has gotten the green light to continue its controversial collection of U.S. phone call records.

The Foreign Intelligence Surveillance Court authorized the program for limited time periods — with a requirement that the government submit new requests every several weeks, The Hill reported Friday.

The Office of the Director of National Intelligence announced the court’s approval in a statement late Friday.

The phone record snooping — first revealed in leaks by Edward Snowden — generated criticism from privacy advocates and some lawmakers, who are concerned the collection affects millions of Americans who aren’t suspected of any wrongdoing.