Changes in writing to file