Now includes iterations as an argument
Now includes iterations as an argument to be called by masterAAMC.m