Update Logstat refactoring