The steam generated in the boiler not only moves the locomotive, but is also used to operate other devices such as the whistle, the air compressor for the brakes, the pump for replenishing the water in the boiler and the passenger car heating system.