Use class variable for toggle_index.