Removed unnecessary id generating function