Added a timeout to HTTP client