Added some flexibility to Hisotgram maker.