Should be happening in a template.