Renamed id to train not to have conflicts with QML