A LOCHGELLY man breached a court order not to contact his former partner.

As a result, 28-year-old Scott Cunningham, of South Street, appeared at Dunfermline Sheriff Court by video-link from prison.

He admitted that between March 16 and July 20, at an address in Dunfermline, he engaged in a course of conduct abusive of his ex-partner by contacting her repeatedly by phone voicemail, text message and social media, acted aggressively, attended at her home, refused to leave, shouted, swore, created social media accounts, and made coercive and manipulative comments towards her repeatedly.

Depute fiscal Azrah Yousaf said the offences began after the relationship had ended in March.

The court heard Cunningham had spent 43 days in custody.

Sheriff Richard McFarlane imposed a community payback order with two years of supervision, 100 hours of unpaid work and Cunningham will take part in the Caledonian Programme for domestic abuse offenders.

The sheriff also imposed a two-year non-harassment order.

The sheriff told him: “You simply did not heed her attempts to get you to stop. You need to leave her in peace and quiet.”

McFarlane said: “I was stupid. I do apologise.”