Changes to deal with zero counts on a log scale.