That's basically identical to my code, no?
Just passing the result of index() directly to data(), right?

Cheers,
_