This beam passes through an input cavity resonator. RF energy has been fed into the input cavity at, or near, its resonant frequency, creating standing waves, which produce an oscillating voltage, which acts on the electron beam. The electric field causes the electrons to "bunch": electrons that pass through when the electric field opposes their motion are slowed, while electrons which pass through when the electric field is in the same direction are accelerated, causing the previously continuous electron beam to form bunches at the input frequency.