if(Train) MaxLong = whatever, and TrainMode |= LIMITS.