Updated advance_to type to id