The quick action of the loco pilot in halting the train averted a major disaster during the Villupuram derailment.