Add traits to make possible to use compress in other ways