Doing this with templates.