How data collection, safety analysis, and project funding can lead to safer roads.