Added explicit loading of environment settings