Refactoring of index access.