Replace CodeAllmatch with CodeMaxAllmatch