Introduction of TemplateManager