Change algorithm of Poisson generator to enhance speed.