These special locomotives can operate as an electric locomotive or as a diesel locomotive. The Long Island Rail Road, Metro-North Railroad and New Jersey Transit Rail Operations operate dual-mode diesel–electric/third-rail (catenary on NJTransit) locomotives between non-electrified territory and New York City because of a local law banning diesel-powered locomotives in Manhattan tunnels. For the same reason, Amtrak operates a fleet of dual-mode locomotives in the New York area. British Rail operated dual diesel–electric/electric locomotives designed to run primarily as electric locomotives with reduced power available when running on diesel power. This allowed railway yards to remain unelectrified, as the third rail power system is extremely hazardous in a yard area.