Reworked email notifications.