These are great suggestions, thank you!

Wow, I was not even aware of ENABLE_FRAME so I will have to look into that. Lots of while loops in my code!