The defendant has since stopped using the drug, the court heard