Adding Compress & Extract functions