A species of Central American cuckoo, the greater ani, forms groups of two or three females that nest communally to protect their eggs from predators, but sometimes a female will go outside the communal group and lay an egg in an outsider's nest. A team of researchers found that the birds know best when to place all their eggs in one basket and when to spread them around.