Slight change to data structures in path length