Implemented weighting