Gain media with wide spectra allow tuning of the laser frequency. There are hundreds if not thousands of different gain media in which laser operation has been achieved (see list of laser types for a list of the most important ones). The gain medium is excited by the pump source to produce a population inversion, and it is in the gain medium that spontaneous and stimulated emission of photons takes place, leading to the phenomenon of optical gain, or amplification.