Adding email functionality.