Changed the way card types are loaded and handled.