Endoscopy is used by physicians to perform the following task on the passageways of the digestive track.