Finally got the correct opcode handling done.