weight * 1000. for better numerical precision for limit settings
Full set of script in sync with Chiara's v22