Added ability to use a proxy.