Added a bunch of methods to manage groups.