I created chonker to avoid indexing errors from writing index%chunsize. I considered using the standard approach of returning data chunks but find it more difficult to read for my common use case of checkpointing. Chonker returns a chonk data structure that can be used to make decisions when processing a chunk of data.