Edit: sem_next_id