; and (2) the collection of intelligence under such section 702 is meant to shield the United States, and by extension, the allies of the United States, from foreign security threats. II Safeguards and oversight of privacy and civil liberties 201. Limitation on retention of certain data (a) Required purging Subsection (e) of section 702 of the of the Foreign Intelligence Surveillance Act of 1978 ( 50 U.S.C. 1881a(e) ), as amended by title I, is further amended by adding at the end the following new paragraph: (6) Limitation on retention (A) Period of retention and requirement for purging Notwithstanding section 309 of the Intelligence Authorization Act for Fiscal Year 2015 ( 50 U.S.C. 1813 ), except as provided by subparagraph (B), the procedures adopted under paragraph (1) shall ensure that any communications that do not contain foreign intelligence information are purged by not later than 90 days after the date on which the communications are determined to not contain foreign intelligence information. (B) Waiver The Director of the National Security Agency may waive the requirements of subparagraph (A), on an individualized and specific basis, if the Director determines that such waiver is necessary to protect the national security of the United States. . (b) Semiannual assessment Subsection (m) of such section, as redesignated by section 101, is amended— (1) by redesignating paragraphs (2) and (3) as paragraphs (3) and (4)