Adding support for proxy

Adding support for proxy use