Add attribute assignment/querying for groups and stems only