In the early 20th century, galvanized piping replaced previously-used cast iron and lead in cold-water plumbing. Typically, galvanized piping rusts from the inside out, building up layers of plaque on the inside of the piping, causing both water pressure problems and eventual pipe failure. These plaques can flake off, leading to visible impurities in water and a slight metallic taste. The life expectancy of galvanized piping is about 40–50 years, but it may vary on how well the pipes were built and installed. Pipe longevity also depends on the thickness of zinc in the original galvanizing, which ranges on a scale from G01 to G360, and whether the pipe was galvanized on both the inside and outside, or just the outside.