Simplifying index calculations