Derailed train was speeding through loop