Add TemplateManager and relative classes.