New histogram working but slow