Adding code to remove old kernels.