Convert "max" to "mx" for variable names (brought to my attention by Steve