Introduced shaping factor and simple bayesian mean.