Added compression algorithm