Added timeout of 10 seconds to API requests.