Added a template generator