- Added compact() and shrink() utility methods.