Using better max size check