Added hist handling