Ah, interesting. I didn't know about that behaviour, I was just trying to avoid the use of global state. Good catch, thanks.