Compression

To be integrated into main file