Delete WriteRegister function