Rewrited LogReader, minor refactoring