Ed: Move parsing of start/end_time and headway_secs out of the loop