Passengers were evacuated from a train as it travelled through Fife after a fire broke out on board.
Emergency services were called to the scene at Markinch Train Station at around 9.44pm last night.
The brave train driver, of the Edinburgh to Perth service, managed to extinguish the blaze which started within the offside breaking system underneath a carriage.
The cause of the blaze was due to the brake rubbing against the wheel, causing friction.
Eyewitnesses reported a strong smell of smoke in the surrounding area.
A temporary stop was placed on the railway line to allow for fire crews to inspect the train.
They remained on scene for some time and used a hose reel to cool down the affected system.
A thermal imaging camera was also used to determine that the fire was completely extinguished
Two crews from Glenrothes were in attendance alongside fellow firefighters from Methil.
No one was injured during the incident.
Passengers on the affected train were taken to their destinations via taxi service whilst ScotRail quickly out replacement bus services in place.
Other trains were subject to fairly lengthy delays as they waited further down the line.
The 9.08pm service from Edinburgh to Dundee was held at Kinghorn whilst the 9.43 Edinburgh to Aberdeen train was halted at Burntisland.
The broken down train was able to move off from the station at around 11.46pm and the line reopened.
The stricken train was moved to Thornton Junction where it remained overnight.
A Scottish Fire and Rescue Service spokeswoman yesterday said: “We were called at 9.44pm last night to reports of a fire on a train.”
A ScotRail Alliance spokesperson said: “The safety of our customers and our staff is our number one priority and we’re sorry to anyone who was delayed as a result of this cancellation.
“Customers delayed by 30 minutes or more are encouraged to claim for money back via our Delay Repay Guarantee on our website or mobile app.”