Added method to get all groups