Added logic for logs for item matching.