Proxy support added

See issue #7