So to be clear, you are modifying the existing code. is that right?

Where did you put the above code?

Gary