The old trains code developed for 1.7.2