Some changes for templates.