Flexible control for formatting output

... can be made even better..