Supports both input and output format options now.