Added rounding and added the properties to the compression function.