Use templates for output.