Added parameter setting for the noise factor.