Just move the compress and decompress functions around.