Trying to test the iterative function. Does not work esp well.