Updated addIter method to clean implementation.