Changed how logfiles are scanned