Rewritten enviroment scanner, added rotating range scanner.