Added Opcode class and preformance improvements.