Updating environment detection