Adding thread-locking and parameters for station name and arrivalrs or departures (or both)