; (C) not financing or otherwise supporting schools supported by, affiliated with, or run by the Taliban or any designated foreign terrorist organization; (D) dismantling improvised explosive device (IED) networks and interdicting precursor chemicals used in the manufacture of IEDs; (E) preventing the proliferation of nuclear-related material and expertise; (F) issuing visas in a timely manner for United States visitors engaged in counterterrorism efforts and assistance programs in Pakistan; and (G) providing humanitarian organizations access to detainees, internally displaced persons, and other Pakistani civilians affected by the conflict. (2) Waiver The Secretary of State, after consultation with the Secretary of Defense, may waive the certification requirement of paragraph (1) if the Secretary determines that to do so is important to the national security interest of the United States and the Secretary submits a report to the Committees on Appropriations, in classified form if necessary, on the justification for the waiver and the reasons why any part of the certification requirement of paragraph (1) has not been met. (3) Assistance (A) Funds appropriated by this Act under the heading Foreign Military Financing Program for assistance for Pakistan may be made available only to support counterterrorism and counterinsurgency capabilities in Pakistan. (B) Funds appropriated by this Act under the headings Economic Support Fund and Nonproliferation, Anti-terrorism, Demining and Related Programs that are available for assistance for Pakistan shall be made available to interdict precursor materials from Pakistan to Afghanistan that are used to manufacture IEDs, including calcium ammonium nitrate; to support programs to train border and customs officials in Pakistan and Afghanistan