Chunk-level callbacks implemented and customizable chunk sizes (closes #66)