Put all changes into functions under the BadgeManager class