; and (ii) except as provided in paragraph (8), the repayment of each advance shall be amortized for a period not to exceed 10 years. (B) Extensions The Secretary may extend the term of a loan under subparagraph (A)(i), or the deadline for repayment of an advance under subparagraph (A)(ii), as the Secretary determines appropriate. ; (F) in paragraph (8) (as so redesignated by subparagraph (C) of this paragraph)— (i) in subparagraph (B), by striking (1) and inserting (1)(A) ; and (ii) in subparagraph (C), by striking Repayment and inserting Subject to an applicable extension under paragraph (6)(B), repayment ; (G) by striking paragraph (9) (as so redesignated by subparagraph (C) of this paragraph) and inserting the following: (9) Limitations (A) Special advances All special advances shall be made under a loan described in paragraph (1) during the first 10 years of the term of the loan. (B) Replacement of manufactured housing units or large appliances Not more than 10 percent of the total annual amount of budget authority for loans described in paragraph (1) may be used for the replacement of manufactured housing units or large appliances. ; and (H) by adding at the end the following: (11) Grants (A) In general At the election of an eligible entity that receives a loan under this subsection, the Secretary may provide to the eligible entity a grant to pay for a portion of the costs incurred in— (i) making repairs to the property of a qualified consumer that facilitates the energy efficiency measures for the property financed through a loan provided to the qualified consumer under subsection (d)