Added setup.templates function