Add weight to variants based on format