Added functionality to reset the weight list.