Add experimental set_next_index and get_next_index functionality.
#1177
+307
−2
set_next_index and get_next_index functionality.
#1177