Added MGTemplateEngine