Rebuilt the output format.