; and (2) failing to take any corresponding safety action to an alert as set forth in the approved plan pursuant to subsection (c)(2)(J). (g) Preservation of authority Nothing in this section may be construed to restrict the authority of the Secretary. . (b) Clerical amendment The analysis for subchapter II of chapter 201 of title 49, United States Code, as amended by section 105(a)(2), is further amended by adding at the end the following: 20173. Defect detection systems. . (c) Temporary defect detection assistance (1) Formula grant program The Administrator of the Federal Railroad Administration shall establish a formula grant program to assist commuter railroads with installing defect detection technology. (2) Eligible entities A commuter railroad that has a contract with a Class I railroad, as of May 1, 2023, that requires the commuter railroad to install defect detection technology that complies with the approved plan submitted pursuant to section 20173 of title 49, United States Code, is eligible to receive a grant under this subsection. (3) Formula Grant funding under this subsection shall be allocated based on the number of defect detectors required to be installed to comply with section 20173 of title 49, United States Code. (4) Requirements Any eligible entity that receive grant funding under this subsection shall comply with the grant conditions set forth in such section 22909(j). (5) Authorization of appropriations There is authorized to be appropriated to the Federal Railroad Administration such amounts as may be necessary to carry out the formula grant program under this subsection. 108. Safe Freight Act of 2023 (a) Short title This section may be cited as the Safe Freight Act of 2023 . (b) Freight train crew size Subchapter II of chapter 201 of title 49, United States Code, is amended by inserting after section 20153 the following: 20154. Freight train crew size safety standards (a) Minimum crew size Except as provided in subsections (b) and (c), a freight train operated by a Class I railroad may