Train services in Fife were disrupted on Tuesday evening due to a person on the railway line.
ScotRail was unable to run services between Inverkeithing and Dunfermline Queen Margaret stations for more than 30 minutes.
It was due to a person being on the railway line in the Dunfermline area – though the exact circumstances are unclear.
The operator says the line has now been cleared, allowing for services to resume between the towns.
UPDATE: The person on the line has now been found by the police, allowing the line between Inverkeithing and Dunfermline Queen Margaret to reopen. Thanks for your patience. ^Angus