Big thanks, guys truely appreciate the help. I was way to focused on adding another function to the mix, that I forgot about that part.

I'm having a hard time trying to solve this. I suspect that it has to do with closure inside a loop, but I can not for the life of me get it to work...I have been throwing everything I have at it, I've tried to add a new function to it with return function() etc, etc. nothing works. Please help: