Three-parameter version of addModifier()