Improve Quality metrics output for plotting