Refactored GaussianNoise to remove stored noise.