Added nosie factor parameter.