Move chunk-iterator functions to a new file
Fix timestamps storage