Added objCompact method.