Add kernel flags, implement init correctly.