Added ability to add groups.