Only register wagons from each file once