Changed default parameter settings. Parameters now updated after every iteration