; and (D) the extent to which such government is strengthening democracy in Pakistan. (3) Authority and uses of funds (A) Funds appropriated by this Act for assistance for Pakistan may be made available notwithstanding any other provision of law, except for section 620M of the Foreign Assistance Act of 1961. (B) Funds appropriated by this Act for assistance for Pakistan that are made available for infrastructure projects shall be implemented in a manner consistent with section 507(6) of the Trade Act of 1974 ( 19 U.S.C. 2467(6) ). (C) The authorities and directives of section 7044(d)(4) of the Department of State, Foreign Operations, and Related Programs Appropriations Act, 2015 (division J of Public Law 113–235 ) regarding scholarships for women shall apply to funds appropriated by this Act for assistance for Pakistan, following consultation with the Committees on Appropriations. (D) Funds appropriated by this Act under the headings Economic Support Fund and Nonproliferation, Anti-terrorism, Demining and Related Programs that are made available for assistance for Pakistan shall be made available to interdict precursor materials from Pakistan to Afghanistan that are used to manufacture improvised explosive devices and for agriculture extension programs that encourage alternative fertilizer use among Pakistani farmers to decrease the dual use of fertilizer in the manufacturing of improvised explosive devices. (E) Of the funds appropriated by this Act under the heading International Narcotics Control and Law Enforcement that are made available for assistance for Pakistan, not less than $15,000,000 shall be made available for border security programs in Pakistan, following consultation with the Committees on Appropriations. (F) Of the funds appropriated by this Act under the heading Economic Support Fund that are made available for assistance for Pakistan, not less than $19,500,000 shall be transferred to, and merged with, funds made available in title I of this Act under the heading Educational and Cultural