Added support to define selectable groups in XML