Added some checks for required settings in config file.