Now it wors also with compressed data (but without decompression)