Added Index() function for Key_bytes