Added timeout to HttpClient.