Updated the way logs are processed