First prototype of threat calculation.