Added an option to toggle weights.