Resharping.
Don't continue if there is no emails.
Added more logging.