https://github.com/milk-org/ImageStreamIO/blob/d59b2719ddbd4156cd08da127d88a93eeaa83281/ImageStreamIO.c#L2147 This looks like the place to update md->writetime, as well as writetimearray. Also, what about cntarray? Whose job is it to update that?