Add file writing to config.