Need to add a bunch of sanity check in all existing features only in debug mode suing debug_assert! to keep track of kernel flow in debug env.