Modification of xcorr