; and (B) people-to-people educational and cultural activities. (3) For the purposes of paragraph (2), activities described in such paragraph shall be considered to be democracy programs pursuant to section 7032(b) of this Act, except that none of the funds made available under such paragraph may be used for assistance for the Government of Cuba. (4) Funds appropriated under title I of this Act may be made available for— (A) the operation of, and infrastructure and security improvements to, United States diplomatic facilities in Cuba; and (B) costs associated with United States diplomatic personnel in Cuba. (5) Notwithstanding any other provision of law enacted prior to this Act, United States payments to the Inter-American Development Bank (IDB) shall not be withheld if the IDB awards grants for the purpose of hiring consultants and the payment of other costs related to technical assistance to facilitate transparency, private sector development, and other structural reforms of the Cuban economy: Provided , That assistance under this paragraph may not exceed $2,500,000 during fiscal year 2018. (d) Haiti (1) Certification Funds appropriated by this Act under the headings Development Assistance and Economic Support Fund that are made available for assistance for Haiti may not be made available for assistance for the central Government of Haiti unless the Secretary of State certifies and reports to the Committees on Appropriations that such government is— (A) strengthening the rule of law in Haiti, including by— (i) selecting judges in a transparent manner based on merit; (ii) reducing pre-trial detention; (iii) respecting the independence of the judiciary; and (iv) improving governance by implementing reforms to increase transparency and accountability, including through the penal and criminal codes; (B) combating corruption, including by implementing the anti-corruption law enacted in 2014 and prosecuting corrupt officials