Changed base index from 0 to 1