Finished implementation of fill_id_type, remains to be thoroughly tested