Adapted email notifications to new workflow.