Added support for proxy.