A sex offender who failed to comply with the registration system has been remanded in custody by a judge.

Barry Webb also breached the terms of a sexual offences prevention order by not notifying the authorities about a relationship he was in.

After hearing that he had spent much of the past 21 years in jail a judge said he wanted a pre-sentence report before deciding what to do.

The 53-year-old admitted in August 2013 failing to notify the police that he had opened a new bank account.

Then between August 4 and December 8, 2016, he continued a relationship with a woman without disclosing it within the required time.

And on December 2, 2016, the Warminster man failed to complete his annual notification as a sex offender.

Webb, of Swaledale Road, pleaded guilty to one count of breaching a sexual offences prevention order and two of failing to comply with the notification requirements.

He denied three other counts relating to breaching the orders and prosecutors said they would not seek a trial.

Richard Williams, defending, said his client had not been taking his antidepressants and had told his 28-year-old daughter that he would stay out of prison.

"He has broken that promise and that is something he has taken very, very, seriously," he said.

Judge Robert Pawson adjourned the case to Friday February 16 so a presentence report can be prepared and remanded him in custody until then

He said "The fact that I am directing a presentence report is not and indication: you shouldn't take it as any indication of what the sentence will be."

The judge pointed out Webb had been jailed for 10 years in 1997 for attempted rape during a break in at a 56-year-old woman's house.

While on early release in 2002 he again broke into the house of a woman who woke to find him sitting on her bed.

After admitting burglary he was jailed for seven years and told to finish the unserved part of the earlier sentence.