Changed indice methods (register/memory updates) to use common indice variables