Improve compression method.