Added check on source chunk index to avoid copying the chunk if the current one is the same as the previous one.
Added check on source chunk index to avoid copying the chunk if the current one is the same as the previous one.

OxfordSKA/OSKAR,OxfordSKA/OSKAR,OxfordSKA/OSKAR,OxfordSKA/OSKAR