More elegant method of determining active peertypes