Initial commit for the kernel module. The script so far needs to be
tested and debugged before being used.