A computer algorithm was used to search for the maximum peak amplitude for each component within predefined latency ranges (80–136 ms at Cz for N100, 136–240 ms at Cz for P200, 200–320 ms at Cz for N250, and 264–424 sec at Pz for P300). Peaks were verified offline by two trained raters blind to diagnosis of the subject. Through this interactive algorithm, P300 and other ERP components were checked. The peak amplitude was computed as the deviation from the median voltage during the 200 ms prestimulus baseline.