Setting up kernel frame.