More work on initContext.
More work on compileKernel.