Added in the email functionality