Changed method of grabbing note indices.