Set up  functional templating