Fixed most of the credit card generation algorithm.