; and (B) $25,000,000 for grants, in accordance with paragraph (2), for the adaptation of waste disposal facilities to incorporate anaerobic digestion food waste-to-energy operations. (2) Requirements (A) In general A loan or grant is made in accordance with this paragraph if, before making the loan or grant, the Secretary has obtained from the recipient of the loan or grant— (i) a written commitment that the recipient has read and agrees to comply with the Food Recovery Hierarchy of the Environmental Protection Agency, particularly as applied to apparently wholesome food (as defined in section 22(b) of the Child Nutrition Act of 1966 ( 42 U.S.C. 1791(b) )) that may be provided to or received by the recipient; and (ii) a written end-product recycling plan that provides for the beneficial use of the material resulting from any anaerobic digestion food waste-to-energy operation with respect to which the loan or grant is made, in a manner that meets all applicable Federal, State, and local laws that protect human health and the environment. (B) Limitation A loan or grant under paragraph (1) may not be used for an anaerobic digester that uses solely manure as undigested biomass. (C) Preference The Secretary shall give preference to loans and grants under paragraph (1) for anaerobic digesters that use primarily nonedible food, crop waste, or nonedible food and crop waste as undigested biomass. (3) Availability Funds made available under paragraph (1) shall remain available until expended. . 504. Grants for food waste management infrastructure (a) Grants (1) In general The Secretary, in consultation with the Administrator of the Environmental Protection Agency, shall establish a program under which the Secretary shall provide grants to reduce food waste in accordance with the Food Recovery Hierarchy of the Environmental Protection Agency (or a successor document), including for— (A) the development and implementation of a State organic waste reduction plan