Thank you for the suggestion. I have several years of C++ experience and should be able to modify your code to work in Python. I feel the Python code will be a little shorter.