Better format of saving the weights to settings