                 when 'Name' then 30
                 when 'Referrer' then 20
                 when 'Domain' then (if getDomain(target) is 'cps.edu' then 1 else 10)
-                when 'Clans' then 0.1
+                when 'Clans' then 0.01
           sum
         ), 0
         if reasons > mostReasons
           bestTarget = target
           bestTargetSuggestions = suggestions
           mostReasons = reasons
+          bestGroup = nextLargestGroup
       break
+  checkedTopGroups[bestGroup] = true
   return [bestTarget, bestTargetSuggestions]
 
 findSuggestions = (target) ->
   # Look for other users with the same IP, course instances, clans, or similar school names or non-common shared email domains.
   suggestions = []
   t0 = new Date()
-  console.log '  Checking suggestions for', target.emailLower, target.schoolName, (new Date()) - t0
+  if debugging then console.log '  Checking suggestions for', target.emailLower, target.schoolName, (new Date()) - t0
   if target.lastIP
     for otherUser in (userCategories.lastIP[target.lastIP] ? []) when otherUser isnt target
       suggestions.push schoolName: otherUser.schoolName, reasons: ['IP'], user: otherUser
   for leagueType in ['courseInstances', 'clans']
-    console.log '    Now checking', leagueType, (new Date()) - t0
+    if debugging then console.log '    Now checking', leagueType, (new Date()) - t0
     if target[leagueType]?.length
       for league in target[leagueType]
         for otherUser in (userCategories[leagueType][league] ? []) when otherUser isnt target

  "virgin.net", "wanadoo.co.uk", "bt.com",

  # Domains used in Asia
  "sina.com", "qq.com", "naver.com", "hanmail.net", "daum.net", "nate.com", "yahoo.co.jp", "yahoo.co.kr", "yahoo.co.id", "yahoo.co.in", "yahoo.com.sg", "yahoo.com.ph",

  # French ISP domains
  "hotmail.fr", "live.fr", "laposte.net", "yahoo.fr", "wanadoo.fr", "orange.fr", "gmx.fr", "sfr.fr", "neuf.fr", "free.fr",

        existingSuggestion.reasons.push reason
      else
        suggestions.push schoolName: otherUser.schoolName, reasons: [reason], user: otherUser
  if debugging then console.log '    Done checking referrer', (new Date()) - t0
  suggestions = _.sortBy suggestions, 'schoolName'
  suggestions = _.sortBy suggestions, (s) -> -s.reasons.length
  return suggestions
