Added proxy support for use with TOR