Yet more debug.  Also, move this totalDelay calculation.