Reverting Listbox.index_of as this needs more testing.