Add timeouts on curl