I'd make this template into a macro.