Early endoscopic therapy can help to stop bleeding by using cautery, endoclip, or epinephrine injection. Treatment is indicated if there is active bleeding in the stomach, visible vessels, or an adherent clot. Endoscopy is also helpful in identifying people who are suitable for hospital discharge. Prokinetic agents such as erythromycin and metoclopramide can be given before endoscopy to improve endoscopic view. Either high- or low-dose PPIs are equally effective in reducing bleeding after endoscopy. High-dose intravenous PPI is defined as a bolus dose of 80 mg followed by an infusion of 8 mg per hour for 72 hours—in other words, the continuous infusion of PPI of greater than 192 mg per day. Intravenous PPI can be changed to oral once there is no high risk of rebleeding from peptic ulcer.