Refactored compression of datasets, removed junk.