The return of the plugin

Comment that the int is an index (here I would really like a ``typedef int Index`` in some common place; that would make all these ints much more readable).