Added new email messages into algorithm