You might want to indicate here that 'modifier' and 'average' are strings used for the warning. It is hard to guess from the name of the function and the argument names.