Sometimes, traffic lights are centrally monitored and controlled by computers to coordinate traffic lights in real-time and deal with changing traffic patterns. Timers or sensors are also used to manage traffic flow across a city.