Added set loop
Replaced weight.csv by seq