Detecting the Environment
