Use getWeight().