Added applyWeight()