Train derailment caused by distracted engineer