Added addModifier function.