The skirl of the pipes sounded as family, friends and colleagues paid tribute to a Fife man murdered by terrorists in Algeria.
Kenny Whiteside (59), originally from Glenrothes, was shot dead by Islamist militants after being taken hostage at the In Amenas gas plant on January 18. He had worked there as a planning manager for five years.
Mr Whiteside lived in Johannesburg with his wife Catherine and daughters Alana (27) and Nova (25).
His family were at Kirkcaldy Crematorium for the funeral. Around 300 people attended the service, including other Scots hostages who survived the attack which claimed the lives of 37 foreign workers.
Civil celebrant Denis Madden said Mr Whiteside was “fearless and fantastic”.
“Here was a man who was good at his job, sought after, well-known, well-liked, and well-respected in the workplace and who will be sorely missed by so many people,” he said.
“But we are gathered here because Kenny was taken from our midst, just while going about his duty taken by men who knew nothing of the warmth, the love, the peace, that this man brought to his family and all who knew him.
“It is absolutely heart-breaking for Catherine, Alana and Nova. But while this man lives on with love, he will simply never die.”
Mr Madden said Mr Whiteside was a self-taught piper who played at functions in South Africa. He was also an “avid supporter” of Raith Rovers and would phone Scotland from “obscure places” to find out their results.
The coffin was carried into thecrematorium draped in a Saltire and the flag of South Africa.
A poem written by his daughters, entitled To Our Dad, was read out. It ended: “God has you in His keeping we have you in our heart.”
It emerged last night that the In Amenas plant was poised to resume production.
Plant director Lotfi Benadouda led a media tour of the battle-scarred site and said one of the three gas units would soon be up and running.
Mr Benadouda also revealed that, sadly, the five missing Norwegian employees had all been accounted for and confirmed dead.
Initially it was thought the five may have escaped into the desert.