Thanks a lot kaud for explaining. I am grateful to get suggestions here, I know I need to work on programming skills. I appreciate your patience and willingness to help . Thanks a lot again.
@Arjay: yes, names are bit far descriptive, as I am just trying to follow template of legacy code.

Thanks a lot again, for inputs, helpful for me to improve.