A man ended up on the railway tracks during a fight at Burntisland train station, a court has heard.
Stephen Cannon, 23, of Dervaig Gardens, Upperton, Longriggend, was on his way home from visiting friends in Fife when trouble broke out.
He and a friend were attacked by an irate man but after initially acting in self defence, Cannon kicked the assailant on the head after he had fallen to the ground.
At Dunfermline Sheriff Court, Cannon admitted assaulting Robert Lorimer at Burntisland station on July 4 2014.
Depute fiscal Claire Bremner said that at 11am Cannon and his friend were at the station waiting for a train home to Airdrie.
The complainer appeared to be “extremely angry” and assaulted Cannon’s friend before Cannon went to his friend’s aid.
“Both males ended up in a struggle and during the course of it, the complainer fell on to the railway tracks,” said Ms Bremner.
After getting himself back on to the platform, the complainer was still looking for a fight and attacked both men again.
“It’s accepted by the Crown that up to this point the accused was acting in self defence,” added the depute.
However, CCTV from the incident then showed Cannon to kick the man once on the head when he was on the ground.
Defence solicitor Nicky Matteo said his client had been waiting for a train when the incident began.
During the incident his client “rather stupidly” had taken a kick at him, he added.
Sheriff Craig McSherry ordered Cannon to carry out 90 hours of unpaid work.