Thank you very much! This is exactly what I needed. I have only one more question:
If I wanted to return something from my function (such as the accuracy value), what would be the best way to do so? I was thinking about having a global list a updating that list inside the function, but this might be a little bit odd probably.
Thanks again!!