Implement also compact-function