Fix scope of config_file attribute. Add new config interface class.