Add support for template setting