Template refinements.