Added basic templating.