Convert all indexing commands (and more)

Fixes issue #10.