Added ability to set proxy