Added a timeout for HTTP requests