Improve comment of function get_indices