Template refinements