Actually generate the id