Setting variables from the global_settings file and producing the correct aggregate results.