Automatically sorting new Agents into Groups