Change rows and cols to numRows and numCols.