Allow choice of output type.