Add ward number to each path