Added timeout to network requests.