Little rewrite of 'compress' and 'run' methods.