Added weighting to different element types