Moved the chunkify to a seperate module