Added the proxy detection