Add CodeMaxAllmatch support