Added compression code