Added logstat cleaning