Simplify indexAddition function
Commit