Added collision code and hacked code for generating uuids