Templating finally working