Some insects, like honeybees and fruit flies, slumber just like us—and can get sloppy without their Zzzs, reports National Geographic.

Paper wasps, cockroaches, praying mantises, and fruit flies are among insects that doze.Fruit fly sleep is even similar to mammal sleep, since the flies respond to sleep-inducing chemicals and caffeine, just like people, Klein says.

Still, measuring sleep in insects is tricky—it’s not always easy, for instance, to differentiate between sleep and sleep-like states.