Code moved from monitor to analyser #1