Title: Real time control of a railway system