Added ability to set http proxy