Quick tweak to the addPath method