Edit: shm_next_id