"scope" is now read from the config file

The "scope" variable is now read from the config file,
instead of being hardcoded into the source code.