Adding rules for max value too