Added function for unique ids in DCore