A GC operates by injecting a small amount of the sample into a stream of carrier gas, usually helium or nitrogen. The sample is then carried through a column packed with a stationary phase. Different compounds in the sample have different affinities for the stationary phase and thus travel through the column at different rates. A detector at the end of the column measures the amount of each compound, providing a chromatogram with peaks corresponding to different substances.