Improve code of configuration file