Changed histogram script to generate data in the new format we need.