Increase MAXRULES to 1024