Add maxSize() method.