Hard lessons learned
Suddenly, the engine started running very roughly. They always say flying is long hours of boredom punctuated by moments of sheer terror. I put the carb heat on and things seemed to settle down. A few minutes later, the engine roughness and coughing started again with the engine almost dying and then surging back to life in cycles.