Changes in functionMonitor to follow new changes in setting bp(s), Also Fix some bugs when initializing bp(s).