Electric trains use electric power to operate. There are two main types - those that use electric power to drive electric motors, and those that use it to generate a magnetic field for traction. Electric traction is more efficient than steam or diesel locomotives. Railways typically use either direct current or alternating current systems, transmitted through overhead lines or a third rail. Locomotives receive power, regulate voltage, convert current type if needed, and use motors to convert electrical power to mechanical motion. Braking methods include electrical, regenerative, and mechanical braking of trains.