Added support for proxyHost and proxyPort (untested)