A method of accounting for the movement of the lungs during an endoscopic procedure such that a previously acquired image may be dynamically registered with a display showing the position of a locatable guide. After an initial image set is acquired, an area of interest is identified and the movement thereof due to breathing is mathematically modeled. Patient movement sensors are then used to provide information on the patient's breathing patterns. This information is entered into the mathematical model in order to update the registration between the image set and a display showing the position of the locatable guide.