Implemented decompression and clean-up