Added new addPath method. Needs testing