Improving my example of chunk-based processing.