Modify the data writing