Added some ways to debug events that take place in the kernel.