Added collision detection and other statistics on the train data.