; and (ii) any amounts recovered during such fiscal year from grants awarded under this section during a prior fiscal year. . (c) Supplemental training grants Section 5128(b)(4) of title 49, United States Code is amended by striking $2,000,000 and inserting $4,000,000 . 10. Rail safety infrastructure research and development grants (a) Research requirement The Administrator of the Federal Railroad Administration shall award grants, in accordance with section 22907 of title 49, United States Code, and the restrictions and limitations on eligibility for Class I railroads under such section, for research and development of wayside defect detectors to better prevent the derailment of trains transporting hazardous materials. (b) Funding (1) Appropriation There is appropriated to the Federal Railroad Administration, out of any funds in the Treasury not otherwise appropriated, $22,000,000, which shall be used for the grants authorized under subsection (a) for the improvement and research of wayside defect defectors and the prevention of derailments of trains containing hazardous materials. (2) Availability of funding Amounts appropriated under this subsection shall remain available until expended 11. Appropriations for tank car research and development There is appropriated to the Pipeline and Hazardous Materials Safety Administration, out of any funds in the Treasury not otherwise appropriated, $5,000,000, which shall be used for expenses related to the development of— (1) stronger, safer tank cars and valves for tank cars; and (2) other tank car safety features.