necessitated as a result of any withdrawals) incurred by the United States as a result of such lease. (c) Access by the United States The Secretary shall ensure that leasing of facilities under the program established under subsection (a) does not impair the ability of the United States to withdraw, distribute, or sell petroleum products from the Strategic Petroleum Reserve in response to an energy emergency or to the obligations of the United States under the Agreement on an International Energy Program. (d) National security The Secretary shall ensure that leasing of facilities under the program established under subsection (a) to a foreign government or its representative will not impair national security. (e) Deposits of amounts received (1) In general Except as provided in paragraph (2), amounts received through the leasing of facilities under the program established under subsection (a) shall be deposited in the SPR Petroleum Account established in the Treasury under section 167 during the fiscal year in which such amounts are received. (2) Costs The Secretary may use for costs described in subsection (b) (other than costs described in subsection (f)), without further appropriation, amounts received through the leasing of facilities under the program established under subsection (a). (f) Preparation of facilities The Secretary shall only use amounts available in the Energy Security and Infrastructure Modernization Fund established by section 404 of the Bipartisan Budget Act of 2015 for costs described in subsection (b) of this section that relate to addition of facilities or changes to facilities or facility operations necessary to lease such facilities, including costs related to acquisition of land, acquisition of ancillary facilities and equipment, and site development, and other necessary costs related to capital improvement. . (b) Pilot program To lease Strategic Petroleum Reserves (1) In general Part B of title I of the Energy Policy and Conservation Act ( 42 U.S.C. 6231 et seq. ) is amended by