A man who was convicted of using a chatroom in an attempt to entice a 14-year-old boy into having sex with him should not be totally banned from using the internet or possessing electronic communication devices, a federal appeals court has ruled.

The U.S. Court of Appeals for the Third Circuit held that the conditions of Branden Holena’s supervised release from prison were too harsh, and that the sentencing judge had to fashion the terms of Holena’s probation to the threat he posed to society—not a blanket ban.