Added option for template with no id