Rewritten path data - make it simpler. Also it fixes a bunch of bugs.