Added support for Socks proxys