The basic setup in electrosynthesis is a galvanic cell, a potentiostat and two electrodes. Typical solvent and electrolyte combinations minimizes electrical resistance. Protic conditions often use alcohol-water or dioxane-water solvent mixtures with an electrolyte such as a soluble salt, acid or base. Aprotic conditions often use an organic solvent such as acetonitrile or dichloromethane with electrolytes such as lithium perchlorate or tetrabutylammonium salts. The choice of electrodes with respect to their composition and surface area can be decisive. For example, in aqueous conditions the competing reactions in the cell are the formation of oxygen at the anode and hydrogen at the cathode. In this case a graphite anode and lead cathode could be used effectively because of their high overpotentials for oxygen and hydrogen formation respectively. Many other materials can be used as electrodes. Other examples include platinum, magnesium, mercury (as a liquid pool in the reactor), stainless steel or reticulated vitreous carbon. Some reactions use a sacrificial electrode that is consumed during the reaction like zinc or lead. Cell designs can be undivided cell or divided cell type. In divided cells the cathode and anode chambers are separated with a semiporous membrane. Common membrane materials include sintered glass, porous porcelain, polytetrafluoroethene or polypropylene. The purpose of the divided cell is to permit the diffusion of ions while restricting the flow of the products and reactants. This separation simplifies workup. An example of a reaction requiring a divided cell is the reduction of nitrobenzene to phenylhydroxylamine, where the latter chemical is susceptible to oxidation at the anode.