An implantable device for controllably applying a neural stimulus, the device comprising: a plurality of electrodes including one or more nominal stimulus electrodes and one or more nominal sense electrodes; a stimulus source for providing a stimulus to be delivered from the one or more stimulus electrodes to a neural pathway in order to give rise to an evoked action potential on the neural pathway; measurement circuitry for recording a neural compound action potential signal sensed at the one or more sense electrodes; and a control unit configured to: control application of a neural stimulus as defined by at least one stimulus parameter; measure via the measurement circuitry a neural compound action potential response evoked by the stimulus; determine from the measured evoked response a feedback variable; complete a feedback loop by using the feedback variable to control the at least one stimulus parameter value; and adaptively compensate for changes in a gain of the feedback loop caused by electrode movement relative to the neural pathway, characterized in that said compensation comprises maintaining a corner frequency of the feedback loop at a desired value or within a desired range, and wherein the desired value or range of the corner frequency is selected to suitably attenuate low frequency noise such as heartbeat as well as high frequency noise such as electrical amplifier noise. a plurality of electrodes including one or more nominal stimulus electrodes and one or more nominal sense electrodes; a stimulus source for providing a stimulus to be delivered from the one or more stimulus electrodes to a neural pathway in order to give rise to an evoked action potential on the neural pathway; measurement circuitry for recording a neural compound action potential signal sensed at the one or more sense electrodes; and a control unit configured to: control application of a neural stimulus as defined by at least one stimulus parameter; measure via the measurement circuitry a neural compound action potential response evoked by the stimulus; determine from the measured evoked response a feedback variable; complete a feedback loop by using the feedback variable to control the at least one stimulus parameter value; and adaptively compensate for changes in a gain of the feedback loop caused by electrode movement relative to the neural pathway, characterized in that said compensation comprises maintaining a corner frequency of the feedback loop at a desired value or within a desired range, and wherein the desired value or range of the corner frequency is selected to suitably attenuate low frequency noise such as heartbeat as well as high frequency noise such as electrical amplifier noise. control application of a neural stimulus as defined by at least one stimulus parameter; measure via the measurement circuitry a neural compound action potential response evoked by the stimulus; determine from the measured evoked response a feedback variable; complete a feedback loop by using the feedback variable to control the at least one stimulus parameter value; and adaptively compensate for changes in a gain of the feedback loop caused by electrode movement relative to the neural pathway, characterized in that said compensation comprises maintaining a corner frequency of the feedback loop at a desired value or within a desired range, and wherein the desired value or range of the corner frequency is selected to suitably attenuate low frequency noise such as heartbeat as well as high frequency noise such as electrical amplifier noise. <EOS>