The Wand ID assigning code