Added compression handler to apply compression