Reference tag number variable instead of hard-coded value