Patches to template.