Added better path adder.
Fixed syntax error.