'BaseData helpParentNode' should not be a global variable, define it in the relevant functions instead.