Adding max_length to invertebrate