If active bleeding is found, such as bleeding caused by an ulcer, the health care provider can stop the bleeding using the endoscope.