Andrew Macbeth was a habitual user of cocaine when he committed the offence last year but has not touched it since.