The earliest inverters consisted of a DC motor connected mechanically to an AC generator. A later design often used with vacuum tube car radios consisted of a rapidly switching relay. Modern inverters are based on MOSFET or IGBT transistors.