Update TemplateEngine class. This cannot be a Singleton due to is cloning!