We have developed an improved recombination calculation of H, He i, and He ii in the early universe that involves a line-by-line treatment of each atomic level. We find two major differences compared with previous calculations. First, the ionization fraction xe is approximately 10% smaller for redshifts &800 because of nonequilibrium processes in the excited states of H. Second, He i recombinat...