Added a timeout to requests

Added a timeout period of 10 seconds to all curl requests.