Add timeout for HTTP requests.