A 60-year-old man with a 2-week history of worsening epigastric pain, which is gnawing in nature and often wakes him at night, is reviewed in general practice. He has been taking ibuprofen 400mg TDS for back pain for the last month. He smokes 20 cigarettes a day. What is the most appropriate initial management step?