 The extraction is performed in many steps (one amount of crushed plant is extracted at least six to ten times, so practically every alkaloid goes into the solution).From the solution obtained at the last extraction step, the alkaloids are precipitated by either ammonium hydroxide or sodium carbonate.The last step is purifying and separating morphine from other opium alkaloids.