Added min/max.
Added JSON formatted output file