Updated output file format to get format from order object.