Added an "isEmpty" flag to the chunks so that we don't save empty chunks