Added checkAndHandleWeightValues function for imports