File writing modifications