Changed the instruction_type function