Added a new compact() method signature.