Support for templated output.