Update logstat refactoring