Added environment reading of config variables.