Add cross-correlation delay code