An optical disc drive uses laser light to read and write data to optical discs. It contains a rotational mechanism that varies the disc's speed between 200-500 RPM depending on the disc's location. Optical drives also use either a tray-loading or slot-loading mechanism to insert discs. The laser is used to melt areas of the disc's recording layer, altering its crystalline structure to write data bits. The optic contains the laser, lens to guide the beam, and photodiodes to detect the reflected light and read the data.