; and (B) the replacement of a manufactured housing unit or large appliance with a substantially similar manufacturing housing unit or appliance, respectively, if that replacement is a cost-effective option with respect to energy savings. ; (2) in subsection (c)— (A) in the subsection heading, by inserting and grants before to ; (B) by striking paragraph (1) and inserting the following: (1) In general Subject to this subsection, the Secretary shall provide— (A) loans to eligible entities that agree to use the loan funds to make loans under subsection (d) to qualified consumers for the purpose of implementing energy efficiency measures; and (B) at the election of any eligible entity that receives a loan under subparagraph (A) of this paragraph, a grant in accordance with paragraph (11). ; (C) by redesignating paragraphs (2) through (9) as paragraphs (3) through (10), respectively, and inserting after paragraph (1) the following: (2) Prioritization The Secretary shall give priority to applications from eligible entities serving at least 80 percent of their ratepayers residing in rural areas, as defined in section 343(a)(13)(A) of the Consolidated Farm and Rural Development Act ( 7 U.S.C. 1991(a)(13)(A) ). ; (D) in paragraph (3) (as so redesignated by subparagraph (C) of this paragraph)— (i) in the paragraph heading, by inserting for loans before the period; and (ii) in subparagraph (A)(i), by striking that is ; (E) by striking paragraph (6) (as so redesignated by subparagraph (C) of this paragraph) and inserting the following: (6) Repayment (A) In general Subject to subparagraph (B) of this paragraph, with respect to a loan under paragraph (1)(A)— (i) the term shall not exceed 20 years from the date on which the loan is closed