Added support of config file.