Removed #generate_card_code because it's unecessary