Add transformation compacting.