Added refs to while opcode