Cleaning the Kernel class.