Got template output working.

Not used at the moment yet however..