Renamed indexList to indices