Added the read_compressed function