Finished implementation of iteration updating