Changed tmpl to tpl