Thanks it works now, also didn't help that I had the wrong variable in the addtok line d'oh.