Where steam is required for space heating, the boiler is often called a "steam generator". A niche application was for heating railroad passenger cars while steam locomotives were being phased out. The steam generator would be oil-fired on diesel locomotives or electrically heated on electric locomotives. Steam heating is now uncommon on trains. Modern trains are usually heated by electric heaters.