Slightly optimized weighting