Change Tor detection functions