 */
 
 void doDelay() {
+
+  if laserdur > 0 {
+    doDelayWithLaser();
+  }
   
   csON();
   

  // starting a trial
  trialtime = millis();

  if (cs <= ISI) {
    doTrace();
  }
  else { doDelay(); }

int led = 9;
int whisker = 10;
int tonech = 11;
int laser = 12;
int puff = 13;

// Used internally to select channels for CS/US
