Cursor indexing implemented