; and (ii) be maintained in a manner that is auditable and available for congressional oversight. (11) Compliance and maintenance The requirements of this subsection do not apply with respect to queries made for the purpose of— (A) submitting to Congress information required by this Act or otherwise ensuring compliance with the requirements of this section; or (B) performing maintenance or testing of information systems. (12) Consent The requirements of this subsection do not apply with respect to— (A) queries made using a term identifying a person who is a party to the communications acquired under subsection (a), or a person who otherwise has lawful authority to provide consent, and who consents to such queries; or (B) the accessing or the dissemination of the contents or information of communications acquired under subsection (a) of a person who is a party to the communications, or a person who otherwise has lawful authority to provide consent, and who consents to such access or dissemination. (13) Query purposes The contents of communications acquired under subsection (a) and the information relating to the dialing, routing, addressing, or signaling information of such communications may only be queried if the query is reasonably designed to return foreign intelligence information or evidence of a crime. . 103. Limitation on collection and improvements to targeting procedures and minimization procedures (a) Targeting procedures; limitation on collection Section 702(d) ( 50 U.S.C. 1881a(d) ) is amended— (1) in paragraph (1), by striking The Attorney General and inserting In accordance with paragraphs (3) and (4), the Attorney General