A TCS script for Open Rails