Working on the decompression function