Added TemplateReader to read template files.