Always helpful to know the bigger picture.

Glad you got it sorted out by putting back the original code.