Use expandObj and collapseObj (buggy)