They turn certain genes on and off when forming memories.