Better check for negative index too.