Yes the function name is not very intuitive as per the code flow. Will make the changes.
Thanks !