Add curl completion handler