Adding and removing group flags