Updates the badges.