; and (ii) are designed to achieve one or more of the objectives described in paragraph (4). (4) Objectives Each deployment selected for a loan under paragraph (1) shall promote one or more of the following objectives: (A) Improved security and resiliency of energy supply in the event of disruptions caused by extreme weather events, grid equipment or software failure, or terrorist acts. (B) Implementation of distributed energy in order to increase use of local renewable energy resources and waste thermal energy sources. (C) Enhanced feasibility of microgrids, demand response, or islanding. (D) Enhanced management of peak loads for consumers and the grid. (E) Enhanced reliability in rural areas, including high energy cost rural areas. (5) Restriction on use of funds Any eligible entity that receives a loan under paragraph (1) may only use the loan to fund programs relating to the deployment of distributed energy systems. (b) Loan terms and conditions (1) Terms and conditions Notwithstanding any other provision of law, in providing a loan under this section, the Secretary shall provide the loan on such terms and conditions as the Secretary determines, after consultation with the Secretary of the Treasury, in accordance with this section. (2) Specific appropriation No loan shall be made unless an appropriation for the full amount of the loan has been specifically provided for that purpose. (3) Repayment No loan shall be made unless the Secretary determines that there is reasonable prospect of repayment of the principal and interest by the borrower of the loan. (4) Interest rate A loan provided under this section shall bear interest at a fixed rate that is equal or approximately equal, in the determination of the Secretary, to the interest rate for Treasury securities of comparable maturity. (5) Term The term of the loan shall require full repayment over a period not to exceed the lesser of— (A) 20 years