Ported the classes that emulate CRUD opcodes using write commands from 1.x to 2.x.