Kernel output scope corrected