Updated the setting of environment variables.