ADDED: compression can now deal with averaging _and_ frequencies simultaneously