Replace uses of get() with indexing