In some instances, this system can even detect there's an obstruction on the block (via a track circuit completing with no known trains in the area), and sends a red signal to appropriate oncoming traffic. Here, a computer calculates a safe distance around each moving train.