Added a new parameter

Added an option for recalculating eachRow number of elements in the row
for each line individually