Adding flexibility to the timetable in real-time railway traffic management