Use a map for opcodes. In turn, no more maxPackets