He invented brakes for railway trains that were operated by compressed air conveyed along a flexible pipe to all the cars from a compressor in the locomotive, thus allowing the engineer (driver) to apply the brakes to all cars simultaneously. Westinghouse also invented a rotary steam engine and a device for switching trains on to a different track, and was a pioneer of the electricity distribution industry, introducing a system based on alternating current.