Changed id to inst_num