Added timeout for http requests to prevent some blocking situations.