Support `max` option and `size` option