Created modified path datastructure that doesn't include redundant data.