Simplify row and column indexing.