Change the SPI to submit a task instead of using callback hooks to setup...

... the environment.