Compression functionality added (Not tested)