Changes for compress methods