Add weights in file.