Now makeing a proper check for compression type