Convert to templates.