A New Jersey appeals court says a defendant may present expert testimony to explain how withdrawal from heroin addiction could have led him to give police a false confession.

In a published ruling, the court said withdrawal from opiate addiction is a well-recognized mental condition that could be used to explain why the defendant confessed to participating in a sexual assault and murder when there is little physical evidence linking him to the crime.