   return console.log('Done.') or process.exit() unless [userToSchool, suggestions] = findUserToSchool users
   question ?= formatSuggestions userToSchool, suggestions
   prompt question, (answer) ->
+    answer = answer.trim()
     return console.log('Bye.') or process.exit() if answer in ['q', 'quit']
-    answer = answer.trim()
     if answer is ''
-      users = _.without users, userToSchool
+      return nextPrompt _.without users, userToSchool
     else unless _.isNaN(num = parseInt(answer, 10))
       schoolName = if num then suggestions[num - 1]?.schoolName else userToSchool.schoolName
       return finalizePrompt userToSchool, suggestions, schoolName, users

UserHandler = require '../server/users/user_handler'
User = require '../server/users/User'

#startDate = new Date 2015, 11, 1
startDate = new Date 2015, 11, 8  # Testing

query = dateCreated: {$gt: startDate}, emailLower: {$exists: true}
selection = 'name emailLower schoolName courseInstances clans ageRange dateCreated referrer points lastIP hourOfCode preferredLanguage lastLevel'

  for user in users
    if field is 'domain'
      value = getDomain user
    else if field is 'referrer'
      value = getReferrer user
    else
      value = user[field]
    continue unless value
