All i know that often the first time I tried it, it would fail and after that it seemed to work 99% of the time. I am not sure anymore if i used global variables, I will write the code back in because I didn't commit that, so you can see (perhaps i was just doing it wrong?)