Actuall emailStudents needs to be a global variable. That's why I have it.