Updated indexing op. Added shell style test.