Finalizing the kernel calculator.