Added templating.