The Beretta M9—officially the Pistol, Semiautomatic, 9mm, M9—is the designation for the Beretta 92FS semi-automatic pistol used by the United States Armed Forces. The M9 was adopted by the United States military as their service pistol in 1985. The 92FS won a competition in the 1980s to replace the M1911A1 as the primary sidearm of the U.S. military, beating many other contenders, and only narrowly defeating the SIG Sauer P226 for cost reasons. It officially entered service in 1990. Some other pistols have been adopted to a lesser extent, namely the SIG P228 pistol, and other models remain in use in certain niches. The M9 was scheduled to be replaced under a United States Army program, the Future Handgun System (FHS), which was merged with the SOF Combat Pistol program to create the Joint Combat Pistol (JCP). The JCP was renamed Combat Pistol (CP), and the number of pistols to be bought was drastically cut back. The U.S. Army, Navy, Air Force, and Marine Corps are replacing the M9 with the SIG Sauer M17 and M18.