Changed DiscreteDistribution class.