Immune memory in insects was discovered through the phenomenon of priming. When insects are exposed to non-lethal dose or heat killed bacteria they are able to develop a memory of that infection that allows them to withstand otherwise lethal dose of the same bacteria they were exposed to before. Unlike in vertebrates, insects do not possess cells specific for adaptive immunity. Instead those mechanisms are mediated by hemocytes. Hemocytes function similarly to phagocytes and after priming they are able to more effectively recognize and engulf the pathogen. It was also shown that it is possible to transfer the memory into offspring. For example, in honeybees if the queen is infected with bacteria then the newly born workers have enhanced abilities in fighting with the same bacteria. Other experimental model based on red flour beetle also showed pathogen specific primed memory transfer into offspring from both mothers and fathers.