Added AddTemplateMessage.