Nl km spi delay refactored