Added code to keep track of the number of chunks processed and commented out adding the last chunk for now to make debugging easier