Change write file process