Updated credit card generation code