This video shows how to implement a safety management system, which will prevent trains from colliding. This technique can be used for modeling railyards with trains arriving from converging tracks.