Added compact()