Simplified the chunkify module