Create SimplifyPath

A bit tweaked. Need to be refined.