Refactored card creation process.