Implemented pane group algorithm required by many new flex commands