Changed from using environment variables to config variables.