Added option to allow compression