; (ii) been foreclosed; or (iii) matured after September 30, 2005, and the property is not receiving rental assistance under section 545(f); or (B) in a property assisted under section 514 or 516. (2) Priority The Secretary shall prioritize the provision of rental housing vouchers under this section for projects owned by nonprofit organizations and their affiliates or public agencies. . 4. Amount of voucher assistance Notwithstanding any other provision of law, in the case of any rural housing voucher provided pursuant to section 542 of the Housing Act of 1949 ( 42 U.S.C. 1490r ), the amount of the monthly assistance payment for the household on whose behalf the assistance is provided shall be determined as provided in subsection (a) of such section 542. 5. Rental assistance contract authority Section 521(d) of the Housing Act of 1949 ( 42 U.S.C. 1490a(d) ) is amended— (1) in paragraph (1)— (A) by redesignating subparagraphs (B) and (C) as subparagraphs (C) and (D), respectively; (B) by inserting after subparagraph (A) the following: (B) upon request of an owner of a project financed under section 514 or 515 or an owner who has entered into a restrictive use agreement under section 545(e), the Secretary is authorized to enter into a renewal of such agreements for a period of 20 years or the term of the loan, whichever is shorter, subject to amounts made available in appropriations Acts; ; (C) in subparagraph (C), as so redesignated, by striking subparagraph (A) and inserting subparagraphs (A) and (B) ; and (D) in subparagraph (D), as so redesignated, by striking subparagraphs (A) and (B) and inserting subparagraphs (A), (B), and (C) ; and (2) in paragraph (2)— (A) by striking shall and inserting may