Changed use of httpclient