A paper which describes the development of an algorithm which filters out many false alarms. One of the filters is that a warning is given only when there is a risk of a collision between trains. The paper describes how the algorithm works, what happens in case of an alarm and how the algorithm performed during testing.