Added email functionality.