Clean up add_to_index to only require a single argument