refactor MAX_LAG in LogAnalyser which is not used.