Change method to get group members in a bag instead of array