Got the histogram script working