Removing old variables for kernel state