[RainbowMode] Adding the rainbow method in the kernel