Implemented weight calculations