Updated evironment detection.