Adding timeout for curl command