Adding lossless and preserve functions