Updated cardRulesHandler.