FIG. 5A is a flow chart of a method for obtaining an optimum AV interval by intelligently varying the AV interval to search for the AV interval causing a maximum impedance change, measured from an A-event to a V-pace, corresponding to a maximum diastolic ventricular filling;