Add getValue helper refactor
updateIndicies: Reuse increment and decrement logic