The crew uncoupled the locomotive so it could move to the other end.