Finished update function for groups.