The mass spectrometer is used to determine the composition of a sample and follow the evolution of changes in the gas phase composition during the SWNT synthesis. Gases from a reactor are pushed through the lines of the mass spectrometer to an ion source. From there, a mass analyzer determines the molecular weight of the compound. This information can be very important in determining a mechanism for a reaction.