Start and stop of analyser implemented and refactoring