Fixed a lot of the stuff with groups.