Implement compression