Scientists figure out why pulsing corals pulse