To minimize pain and distress, researchers use anesthesia and analgesia during and after procedures that might cause discomfort. Additionally, humane endpoints are established to avoid unnecessary suffering, meaning that animals are euthanized humanely if they reach a defined level of pain or distress.