Added iterations and error injection