Looping through chunks.