DRIVER Barry Smith has been ordered to carry out 100 hours of community service after admitting dangerous driving on the A350 in West Ashton, seconds before a crash in which three people died.

Smith, 21, of The Down, Trowbridge, had been chasing the Toyota MR2 in which Craig Dicker, 23, and Adam Lumley, 21, both from Melksham, died, at speeds of up to 60mph along the A350 before the fatal accident.

Five-year-old Tamara-Jayne Sheppard, of Compton Bassett, also died in the smash. Her seven-year-old brother Ben suffered serious spinal injuries.

Smith pleaded guilty to dangerous driving on November 9, and the case was adjourned for sentencing reports to be prepared.

John Elliott, defending, said Smith's driving had not caused the fatal accident.

He said: "Had there been a clear connection between my client's driving and the aftermath of the terrible accident and unfortunate loss of life to three people, my client would have been charged with causing death by dangerous driving."

Mr Elliott said Smith was devastated by the accident and had sought medical advice to cope with the trauma.

On Monday Amanda Sawetz, prosecuting, told Chippenham magistrates Smith was driving a Peugeot 309GTi on the evening of July 25, when he saw a Toyota MR2 ahead on the A350 heading towards the West Ashton crossroads from Melksham.

The court was told he said: "That car's chipping," and accelerated after it.

Smith's passenger David May reported Smith was driving at about 60 mph. They saw a small car behind a tractor, which pulled out to overtake, followed by both the MR2 and Smith's car, so the three cars were on the wrong side of the road, Smith driving very close to the MR2.

The driver of the small car reported both the MR2 and Smith overtook him immediately after he pulled in, the Peugeot accelerating and very close behind the MR2.

Smith and the MR2 stopped at the traffic lights at the crossroads, and accelerated away when the lights changed. Mr May reported he could hear the engine screaming.

The court heard Smith quickly accelerated to 50mph just a car's length behind the MR2.

Then they saw a large blue lorry coming towards them, and another car pulled out to overtake the lorry.

The MR2 braked fiercely, with smoke coming from all four wheels as it skidded down the hill. It veered across the road and hit the car directly behind the lorry.

Miss Sawetz said Smith's chasing the car in front, his speed, and the distance from the MR2, as well as overtaking a tractor near the brow of a hill, made his driving dangerous.

But she added his driving was not persistently dangerous that day and the speed was not grossly excessive.

As well as the community service, Smith was disqualified from driving for 15 months from November 9, with £118 costs. He will have to take an extended driving test before his licence is restored.