Add ability to automatically calculate weight