Weighted median now works