Media playback is unsupported on your device
Extreme weather had an impact on the train derailment in Aberdeenshire which left three people dead, Scotland's transport secretary has said.
Michael Matheson said an investigation into the accident would establish what lessons could be learned.
Driver Brett McCullough, conductor Donald Dinnie and a passenger died when the Aberdeen to Glasgow service derailed near Stonehaven on Wednesday.
The train is thought to have hit a landslide after rain and thunderstorms.
Six other people who were on board the 06:38 Aberdeen to Glasgow Queen Street service were taken to hospital, but their injuries were not believed to be serious.
Mr Matheson arrived at the site of the crash on Thursday morning.
He said: "What we don't want to do at this particular point is to start to speculate about what actually caused it.
"What I think we can assess, though, is that weather has had an impact.
Image copyright PA Media Image caption Mr Matheson visited Aberdeenshire on Thursday morning"We are seeing increasingly a higher level of what are localised intense weather events that are having an impact on the transport network, including the rail network.
"What we need to do as part of the investigation is identify to what extent it had an impact and also to see what lessons can be learned."
He said some parts of the country had seen a month's rainfall in just a couple of hours on Tuesday night and Wednesday morning.
He said the derailment happened as the train driver was heading north, trying to return to Aberdeen.
Image copyright PA Media Image caption Emergency services were called to the area on Wednesday morningIt has emerged that a member of the crew got out of the derailed train to stop any other trains further down the track.
Mr Matheson said recovery crews had worked through the night to stabilise the site and make it ready for investigators trying to understand how the crash happened.
British Transport Police, the Rail Accident Investigation Branch and inspectors from the Office of Rail and Road - the independent regulator - are involved in the investigation.
Kevin Lindsay, Scotland organiser for the train drivers' union Aslef, said the tragic accident had affected everyone in the railway family.
"Brett thought the world of his family, and his colleagues thought the world of him," he added.
Image copyright PA MediaUK Transport Minister Grant Shapps also plans to travel to the scene of the incident later.
He said he wanted to "try to understand the situation first hand and offer every possible assistance".
The chief executive of Network Rail, Andrew Haines, is also expected to travel to Stonehaven after cutting short a family holiday in Italy.
Image caption Photographs from the scene showed damaged carriages lying across the trackSpeaking on the BBC's Good Morning Scotland radio programme, ScotRail's managing director Alex Hynes, said: "Yesterday was a devastating day for everybody who works in the rail industry in Scotland.
"Our love and support is sent to the victims of this accident and their families, those that were injured in the accident and anybody who was touched by yesterday's terrible tragedy."
The Queen, Prime Minister Boris Johnson and Scottish First Minister Nicola Sturgeon have paid tribute to those killed in the "tragic" incident.
A review of CCTV at stations where the train had stopped suggested there were nine people on the train, including crew, at the time of the accident.
Ch Supt Eddie Wylie, of British Transport Police, said he believed all passengers had been accounted for.
He added: "Once the area has been made safe then a full and thorough search will be conducted, which is likely to take some time.
"I know many people will understandably have questions and we will be working closely alongside the Rail Accident Investigation Branch and the Office of Rail and Road to establish the full circumstances of how the train came to derail."