Use opcode Enum on writers