Added the code for displayChunks