Modified factor weight for flags.