diskwriter implemented for persistance of data.