The most common cause is infection by the bacterium "Helicobacter pylori", which accounts for more than 60% of cases. Certain types of "H. pylori" have greater risks than others. Smoking, dietary factors such as pickled vegetables and obesity are other risk factors. About 10% of cases run in families, and between 1% and 3% of cases are due to genetic syndromes inherited from a person's parents such as hereditary diffuse gastric cancer. Most of the time, stomach cancer develops in stages over years. Diagnosis is usually by biopsy done during endoscopy. This is followed by medical imaging to determine if the disease has spread to other parts of the body. Japan and South Korea, two countries that have high rates of the disease, screen for stomach cancer.