#$%^&*AU2011265496B220150709.pdf#####ABSTRACT A method, including positioning body-electrodes in galvanic contact with a body of a patient and locating a probe in the body of the patient. The method further includes tracking positions of the probe during respiration of the patient and determining indications related to impedances between the body-electrodes during the respiration. The method also includes calculating a function relating the positions of the probe to the indications, and applying the function to identify end-expirium points of the respiration based on subsequent indications related to the impedances.