Made some major updates. Added scope variable to the config file so that it can be set by the user.