to reduce their carbon intensity, and (B) in the case of a proposed eligible facility, to ensure best-in-class carbon intensity. (2) Modeled on Diesel Emissions Reduction Act For purposes of the program described in paragraph (1), such program shall be administered in a manner similar to the national grant program of the Environmental Protection Agency under subtitle G of title VII of the Energy Policy Act of 2005 ( 42 U.S.C. 16131 et seq. ). (3) Awarding of grant amounts For purposes of awarding grants under the program described in paragraph (1), the Secretary (in conjunction with the Administrator and the Secretary of Energy) shall— (A) give preference to proposed investments— (i) that would result in the greatest decrease in carbon intensity, (ii) for facilities located in economically distressed communities that have experienced a loss of manufacturing jobs, (iii) that would maximize improvement in local air quality, or (iv) for facilities located in communities with high cumulative pollution burdens (as determined by the Administrator), and (B) allocate grant funds to eligible facilities and proposed eligible facilities which produce covered primary goods that are included within a covered national industry in approximate proportion to the share of total greenhouse gas emissions for which such industry is responsible for emitting. (4) Recapture In the case of any eligible entity which has been awarded a grant under the program described in paragraph (1) with respect to any eligible facility or proposed eligible facility, if such entity fails to— (A) within 3 years of the awarding of such grant, complete the proposed investments in new technology at such facility, or (B) during the 10-year period after such investments are placed in service— (i) in the case of an existing eligible facility, achieve and maintain the reduction in carbon intensity proposed in the application for such grant, or (ii) in the case of a proposed eligible facility, achieve and maintain the best-in-class carbon intensity proposed in