Allow choice of output format.