Add more debugging output.
Simplify ingestor state machine.