MyTemplates logic