Refactoring of settings and repair of adding cards.