Compress was not working. Implementing it and abusing operator definition