Look into effect of using local memory for nextState