Thanks jaytea for your helpful advice. I have updated the snippet as per your reminder.
Thanks, Veritas.