An excavator being worked in front of a train.