A 47-year-old man caught driving dangerously near Inverkeithing cannot remember being behind the wheel.

However, no reason was given for the “black out” when Alan Fraser, of Riverside, Edinburgh, appeared for sentencing at Dunfermline Sheriff Court.

He previously admitted that on 1st September on the A921, Admiralty Road, Inverkeithing, he drove dangerously, repeatedly drove on to the opposite carriageway and failed to maintain an adequate stopping distance with a preceding vehicle.

He also admitted that on a journey to Dunfermline police station, he adopted an aggressive attitude towards police officers, repeatedly shouted, swore and made threats of violence towards them.

READ MORE: Football fan from Oakley tried to invade the pitch at Hampden

At around 7.15pm police officers saw a motorhome being driven by Fraser. It was swerving about the road and travelling too close to a car in front.

Officers stopped the vehicle and Fraser became abusive.

He was shouting, swearing and making threats saying, “You don’t know it. I’ll f*** you up.”

He was arrested and taken to the police station, continuing to shout and swear on the way there.

Defence solicitor Aime Allan said: “He has a limited recollection of the offence.”

At a previous hearing, Sheriff Charles Macnair said that it was “of great concern” that Fraser was claiming to have had a “total black out” and could not remember driving from Edinburgh to Fife “for no known reason”.

At sentencing, Sheriff Garry Sutherland banned Fraser from driving for 12 months and until he passes the extended test.

He was also fined £370 and ordered to do 50 hours of unpaid work