Mostly work on the auto-email function