Added legacy write command emulation
Ensure the correct index is reported