Do you really need those 2 variables or can you simply add/substract 1 when needed?