A new scientific model shows how animals from mollusks to crows can survive environmental changes by adapting their behavior.