More work on kernel initialization.