Sorting out data writing...