Setting groups

I added the semantic part of the right_id/tag_id, etc. thing.