Update for loop to pick up the number of rows (ie. number of ls scenarios)