Added debug code for displayChunks