Added modified kernel and listener to inject active bundles in kernel