Updating the generator