Put matches into a template to be reusable