Map segments onto steps