Adding unique ids to paths