Working on emitting output with templates.