Adding templating.