Added compression/decompression methods