Fixed Compute Path Length Stuff.