Extra debug code on scanning a tag