Refactor to side-effect-producing processing steps; fix and enhance processing chain.