Kernel structure discovery research code - likely to be unstable