Autocreation of ids