Compress procedure