Nudge: fix scope issue in addTag; remove debug outputs