Thanks for the review, Fabrice. Anticipating the need for more of these special cases, here's a switch-based approach that avoids special variables and makes the level explicit in each case. It's easier to read, too. Let me know if this works for you and I will install it. Ted