Template creation and initial output.