Indexes start at zero. And, unify these code blocks for easier copy and paste.