; and (2) in subsection (f), by adding at the end the following: (5) Legitimate law enforcement purpose The term legitimate law enforcement purpose means, with respect to a communication, that the purpose of the communication is so that a law enforcement agency can, within the lawful authority of that agency, investigate a criminal offense. (6) National security purpose The term national security purpose means, with respect to a communication, that the purpose of the communication relates to— (A) intelligence activities; (B) cryptologic activities that relate to the national security of the United States; (C) command and control of the Armed Forces; (D) equipment that is an integral part of a weapon or a weapons system; or (E) the direct fulfillment of a military or intelligence mission. .