According to eyewitnesses, the four had been roaming on the railway tracks clicking photographs of each other on their mobile phones for over half-an-hour. They then lined up for a selfie even as a train was approaching. Dinesh noticed the train and jumped to safety after alerting the other three.