Added compression parameter
Added example use of the compression parameter