Implemented compact() in Glue object