The techniques described herein are example medical devices, systems, and methods for sensing evoked potentials in a tissue of the patient, and, based on the sensed evoked potentials, adjusting one or more parameters defining the electrical stimulation therapy delivered to the patient. In one example, a system controls delivery of an electrical stimulation therapy from an implantable medical device to a patient according to at least one therapy program, wherein the electrical stimulation therapy is configured to provide pain relief to the patient without substantially resulting in paresthesia perceived by the patient. The system periodically adjusts the electrical stimulation therapy delivered to the patient in response to detected compound action potentials, wherein the adjustment to the electrical stimulation therapy is configured to eliminate action potentials in tissue of the patient evoked by the delivered electrical stimulation, and wherein the controlling and the adjusting are performed via one or more processors.