; 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. Consolidated rail infrastructure and safety improvements (a) In general Section 22907(c) of title 49, United States Code, is amended by adding at the end the following: (17) The research, development, or implementation of wayside defect detectors to better prevent the derailment of trains transporting hazardous materials. . (b) Authorization of appropriations There is authorized to be appropriated to carry out section 22907(c)(17) of title 49, United States Code (as added by subsection (a)), $22,000,000. 11. Tank car research and development (a) In general The Administrator of the Pipeline and Hazardous Materials Safety Administration shall carry out research to develop stronger, safer tank cars and valves for tank cars and other tank car safety features. (b) Authorization of appropriations There is authorized to be appropriated to carry out this section $5,000,000.