Just check the next index for subsequent calls to update match index.