Made a better function for deciding which email to select next (for selecting feature)