Changed "index" to "rowIndex" (reserve name)