in reply to Re^2: use Drugs;
in thread use Drugs;

I ran it, (With sprintf problem), no problems. I hardly ever use printf so I'd have never caught the problem. Fixed above version as-par your fix.