; (B) by inserting after subparagraph (A) the following: (B) upon request of an owner of a project financed under section 514 or 515, the Secretary is authorized to enter into 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) ; (2) in paragraph (2), by striking shall and inserting may ; and (3) by adding at the end the following: (4) In the case of any rental assistance contract authority that becomes available because of the termination of assistance on behalf of an assisted family— (A) at the option of the owner of the rental project, the Secretary shall provide the owner a period of not more than 6 months before unused assistance is made available pursuant to subparagraph (B) during which the owner may use such assistance authority to provide assistance on behalf of an eligible unassisted family that— (i) is residing in the same rental project that the assisted family resided before the termination; or (ii) newly occupies a dwelling unit in the rental project during that 6-month period