Adding helper functionality to templates.