Proxy support. Fixes #3