Add function to get group names