Integrated the analyse thread in the model as well as the file system watcher.