Added an option for compression