Add flag to set output format.
Add flag to set output format.