Added caching of timetable info
Safer syntax for older perl