Thanks for that Mike. I do remember reading about the __main__ in an online tutorial and remember thinking "That's handy!". Totally forgot about that in my own little code so thanks for reminding me.