Writing the configuration file