We hypothesize that cognitive dysfunction can be decreased in patients with type II DM by augmenting cerebral blood flow with a shunt during carotid endarterectomy compared to patients with Type II DM who are treated with "conventional" management in which a shunt is placed only if the electroencephalogram (EEG) indicates cerebral ischemia.