Improvements to several kernels