Make add_badge always return a smart id.