Modified to set null to pc var if pc does not exist on the scanning cell.